NotificationBuilder
Defines the fluent interface for configuring the Notificationcomponent.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class NotificationBuilder : WidgetBuilderBase<Notification, NotificationBuilder>, IHtmlString
Inheritance: objectWidgetBuilderBase<Notification, NotificationBuilder>NotificationBuilder
Implements:
Inherited Members
Constructors
Initializes a new instance of the NotificationBuilderclass.
public NotificationBuilder(Notification component)
The component.
Methods
Sets the time in milliseconds, after which a notifications can be hidden by the user via clicking.
public NotificationBuilder AllowHideAfter(int value)
The value of the setting.
Returns:Configures the animation effects of the displayed notifications.
public NotificationBuilder Animation(Action<PopupAnimationBuilder> animationAction)
The action that configures the animation.
Returns:Defines a CSS selector, which points to the element that will hold the notifications to be displayed.
public NotificationBuilder AppendTo(string value)
The value of the setting.
Returns:Sets the time in milliseconds, after which a notifications is hidden automatically.
public NotificationBuilder AutoHideAfter(int value)
The value of the setting.
Returns:Sets whether notifications should display a hide button (when using default templates only).
public NotificationBuilder Button(bool value)
The value of the setting.
Returns:Configures the client-side events.
public NotificationBuilder Events(Action<NotificationEventBuilder> events)
The client events action.
Returns:Defines the height of the notifications to be displayed.
public NotificationBuilder Height(int value)
The value of the setting.
Returns:Defines the height of the notifications to be displayed.
public NotificationBuilder Height(string value)
The value of the setting.
Returns:Sets whether notifications should be hidden by clicking anywhere on their content.
public NotificationBuilder HideOnClick(bool value)
The value of the setting.
Returns:Configures the position settings of the popup notifications.
public NotificationBuilder Position(Action<NotificationPositionSettingsBuilder> configurator)
The Position configurator.
Returns:Sets the stacking direction when multiple notifications are displayed by a single component instance.
public NotificationBuilder Stacking(NotificationStackingSettings value)
A value of type NotificationStackingSettings enum.
Returns:Sets the Notification HTML tag. A SPAN tag is used by default.
Configures the Notification templates.
public NotificationBuilder Templates(Action<NotificationTemplateFactory> configurator)
The configurator representing the Templates settings.
Returns:Defines the title attribute value for the Notification wrapper.
Defines the width of the notifications to be displayed.
Defines the width of the notifications to be displayed.
public NotificationBuilder Width(string value)
The value of the setting.
Returns: