Notification
Kendo UI Notification component
Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Syntax:
public class Notification : WidgetBase, IHtmlAttributesContainer
Inheritance: objectWidgetBaseNotification
Implements:
Inherited Members
Constructors
Initializes a new instance of the Notification class.
Properties
Indicates the period in milliseconds after which a notification can be dismissed (hidden) by the user.
public double? AllowHideAfter { get; set; }
Animation member.
public PopupAnimation Animation { get; }
Defines the element to which the notifications will be appended or prepended (depending on the stacking direction).
public string AppendTo { get; set; }
Indicates the period in milliseconds after which a notification disappears automatically. Setting a zero value disables this behavior.
public double? AutoHideAfter { get; set; }
Determines whether the notifications will include a hide button. This setting works with the built-in templates only.
public bool? Button { get; set; }
Defines the notifications' height. Numbers are treated as pixels.
public string Height { get; set; }
Determines whether notifications can be hidden by clicking anywhere on their content.
public bool? HideOnClick { get; set; }
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 NotificationPositionSettings Position { get; }
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 NotificationStackingSettings? Stacking { get; set; }
Templates member.
public IList<NotificationTemplateSettings> Templates { get; }
Defines the title attribute value for the Notification wrapper.
public string Title { get; set; }
Methods
Serializes the component settings to a dictionary.
public override IDictionary<string, object> Serialize()
A dictionary of settings.
Overrides:
SerializeSettings method.
protected override Dictionary<string, object> SerializeSettings()
Overrides:
Writes the HTML content.
protected override void WriteHtml(TextWriter writer)
The text writer.
Overrides:
WriteInitializationScript method.
public override void WriteInitializationScript(TextWriter writer)
Overrides: