NotificationBuilder
Defines the fluent API for configuring the Kendo UI Notification
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class NotificationBuilder : WidgetBuilderBase<Notification, NotificationBuilder>, IHtmlContent
Inheritance: objectHelperResultWidgetBuilderBase<Notification, NotificationBuilder>NotificationBuilder
Implements:
Inherited Members
Constructors
Initializes a new instance of the NotificationBuilder class.
Methods
Indicates the period in milliseconds after which a notification can be dismissed (hidden) by the user.
public NotificationBuilder AllowHideAfter(double value)
The value for AllowHideAfter
Returns:Returns the current NotificationBuilder instance.
Configures the animation effects of the displayed notifications.
public NotificationBuilder Animation(Action<PopupAnimationBuilder> animationAction)
The action that configures the animation.
Returns:Returns the current instance of NotificationBuilder.
Defines the element to which the notifications will be appended or prepended (depending on the stacking direction).
public NotificationBuilder AppendTo(string value)
The value for AppendTo
Returns:Returns the current NotificationBuilder instance.
Indicates the period in milliseconds after which a notification disappears automatically. Setting a zero value disables this behavior.
public NotificationBuilder AutoHideAfter(double value)
The value for AutoHideAfter
Returns:Returns the current NotificationBuilder instance.
Determines whether the notifications will include a hide button. This setting works with the built-in templates only.
Determines whether the notifications will include a hide button. This setting works with the built-in templates only.
public NotificationBuilder Button(bool value)
The value for Button
Returns:Returns the current NotificationBuilder instance.
Configures the client-side events.
public NotificationBuilder Events(Action<NotificationEventBuilder> configurator)
The client events action.
Returns:Returns the current NotificationBuilder instance.
Defines the height of the notifications to be displayed.
public NotificationBuilder Height(int value)
The value of the setting.
Returns:Returns the current instance of NotificationBuilder.
Defines the notifications' height. Numbers are treated as pixels.
public NotificationBuilder Height(string value)
The value for Height
Returns:Returns the current NotificationBuilder instance.
Determines whether notifications can be hidden by clicking anywhere on their content.
public NotificationBuilder HideOnClick(bool value)
The value for HideOnClick
Returns:Returns the current NotificationBuilder instance.
This setting applies to popup notifications only, i.e. in cases when appendTo is not set. It determines the position of the first notification on the screen, as well as whether the notifications will move together with the page content during scrolling. top takes precedence over bottom and left takes precedence over right.
public NotificationBuilder Position(Action<NotificationPositionSettingsBuilder> configurator)
The NotificationPositionSettingsBuilder for the position setting.
Returns:Returns the current instance of NotificationBuilder .
Determines the direction in which multiple notification will stack (arrange) with regard to the first one. Possible values are "up", "right", "down", "left" and "default". The "default" setting takes into consideration the applied position settings and is evaluated to "up" or "down".
public NotificationBuilder Stacking(NotificationStackingSettings value)
The value for Stacking
Returns:Returns the current NotificationBuilder instance.
Sets the Notification HTML tag. A SPAN tag is used by default.
public NotificationBuilder Tag(string tag)
The tag type value.
Returns:Returns the current instance of NotificationBuilder.
Configures the Notification templates.
public NotificationBuilder Templates(Action<NotificationTemplateFactory> configurator)
The configurator representing the Templates settings.
Returns:Returns the current instance of NotificationBuilder.
Defines the title attribute value for the Notification wrapper.
public NotificationBuilder Title(string value)
The value for Title
Returns:Returns the current NotificationBuilder instance.
Defines the width of the notifications to be displayed.
public NotificationBuilder Width(int value)
The value of the setting.
Returns:Returns the current instance of NotificationBuilder.
Defines the notifications' width. Numbers are treated as pixels.
public NotificationBuilder Width(string value)
The value for Width
Returns:Returns the current NotificationBuilder instance.