Ejemplo n.º 1
0
 private NotificationGlobalConfigOptions(double bottom, RenderFragment closeIcon, double duration, NotificationPlacement placement, double top)
 {
     Bottom    = bottom;
     CloseIcon = closeIcon;
     Duration  = duration;
     Placement = placement;
     Top       = top;
 }
 private NotificationConfigOptions(double?bottom, RenderFragment description, double?duration, RenderFragment icon, RenderFragment closeIcon, string key, RenderFragment message,
                                   NotificationPlacement placement, double?top, Action onClose, Action onClick, string style, string className, RenderFragment closeButton)
 {
     Bottom      = bottom;
     Description = description;
     Duration    = duration;
     Icon        = icon;
     CloseIcon   = closeIcon;
     Key         = key;
     Message     = message;
     Placement   = placement;
     Top         = top;
     OnClose     = onClose;
     OnClick     = onClick;
     Style       = style;
     ClassName   = className;
     CloseButton = closeButton;
 }
 public NotificationConfigOptionsBuilder SetPlacement(NotificationPlacement placement)
 {
     _placement = placement;
     return(this);
 }
Ejemplo n.º 4
0
 internal List <NotificationListItem> GetNotificationsByPlacementType(NotificationPlacement notificationPlacement) => notificationList.Where(g => g.Options.Placement == notificationPlacement).ToList();