-
Notifications
You must be signed in to change notification settings - Fork 20
/
NotificationInitializer.razor
37 lines (28 loc) · 1.22 KB
/
NotificationInitializer.razor
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
@inherits Fluxor.Blazor.Web.Components.FluxorComponent
@using Luthetus.Common.RazorLib.Contexts.Models
@using Luthetus.Common.RazorLib.Contexts.Displays
@{ var notificationState = NotificationStateWrap.Value; }
<ContextBoundary @ref="_notificationContextBoundary"
ContextRecord="ContextFacts.NotificationContext"
ClassCssString="luth_notification-initializer">
<ChildContent></ChildContent>
</ContextBoundary>
@for (int i = 0; i < notificationState.DefaultList.Count; i++)
{
var index = i;
var notification = notificationState.DefaultList[index];
<NotificationDisplay @key="notification.DynamicViewModelKey"
Notification="notification"
Index="index"
OnFocusInFunc="HandleOnFocusIn"
OnFocusOutFunc="HandleOnFocusOut"/>
}
@*
TODO: Would wrapping the for-loop in a div i.e.:
<div class="luth_notification-initializer"></div>
Cause the gaps between notifications to create invisible walls
or some other weird behaviors?
It is (2024-05-26), I can't recall if I left out an encompassing
div for a reason or not, but I don't have time to look into this
at the moment.
*@