New to Telerik UI for ASP.NET Core? Start a free 30-day trial

Kendo UI Notification TagHelper NotificationTagHelper class.

Definition

Namespace:Kendo.Mvc.TagHelpers

Assembly:Kendo.Mvc.dll

Syntax:

C#
[HtmlTargetElement("kendo-notification")]
[RestrictChildren("position", new string[] { "templates", "popup-animation" })]
[OutputElementHint("div")]
public class NotificationTagHelper : TagHelperBase, ITagHelper, ITagHelperComponent

Inheritance: objectTagHelperTagHelperBaseNotificationTagHelper

Implements: ITagHelperITagHelperComponent

Inherited Members TagHelperBase.MinimumValidatorTagHelperBase.MaximumValidatorTagHelperBase.Init(TagHelperContext)TagHelperBase.Process(TagHelperContext, TagHelperOutput)TagHelperBase.GetInitializator()TagHelperBase.VerifySettings()TagHelperBase.SerializeTemplates()TagHelperBase.GenerateId(TagHelperOutput)TagHelperBase.CreateHandler(string)TagHelperBase.GetRangeValidationParameter<TValue>(ModelExplorer, string)TagHelperBase.ExtractEditFormat(string)TagHelperBase.ToDictionaryHandler(IDictionary<string, string>)TagHelperBase.AddSelfToTemplate(TagHelperContext)TagHelperBase.ViewContextTagHelperBase.GeneratorTagHelperBase.InitializerTagHelperBase.WriterTagHelperBase.ScriptAttributesTagHelperBase.NameTagHelperBase.IdTagHelperBase.SelectorTagHelperBase.IdPrefixTagHelperBase.IsInClientTemplateTagHelperBase.DeferredTagHelperBase.AsModuleTagHelper.Orderobject.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Example:

csharp
@addTagHelper *, Kendo.Mvc

<kendo-notification name="notification" allow-hide-after="3000"></kendo-notification>

Constructors

Initializes a new instance of the NotificationTagHelper class.

C#
public NotificationTagHelper(IKendoHtmlGenerator generator)
Parameters:generatorIKendoHtmlGenerator

Properties

Indicates the period in milliseconds after which a notification can be dismissed (hidden) by the user.

C#
public double? AllowHideAfter { get; set; }

Defines the element to which the notifications will be appended or prepended (depending on the stacking direction).

C#
public string AppendTo { get; set; }

Indicates the period in milliseconds after which a notification disappears automatically. Setting a zero value disables this behavior.

C#
public double? AutoHideAfter { get; set; }

Determines whether the notifications will include a hide button. This setting works with the built-in templates only.

C#
public bool? Button { get; set; }

Defines the notifications' height. Numbers are treated as pixels.

C#
public double? Height { get; set; }

Determines whether notifications can be hidden by clicking anywhere on their content.

C#
public bool? HideOnClick { get; set; }

The name of the JavaScript function that will handle the hide event. Fires when a notification's hiding animation starts.

C#
public string OnHide { get; set; }

The name of the JavaScript function that will handle the show event. Fires when a notification's showing animation starts.

C#
public string OnShow { get; set; }

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".

C#
public NotificationStackingSettings? Stacking { get; set; }

Defines the title attribute value for the Notification wrapper.

C#
public string Title { get; set; }

Defines the notifications' width. Numbers are treated as pixels.

C#
public double? Width { get; set; }

Methods

Gets the initialization script.

C#
protected override string GetInitializationScript()
Returns:

string

The initialization script.

Overrides: TagHelperBase.GetInitializationScript()

C#
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Parameters:contextTagHelperContextoutputTagHelperOutputReturns:

Task

Overrides: TagHelper.ProcessAsync(TagHelperContext, TagHelperOutput)

Serializes the defined settings.

C#
public override IDictionary<string, object> Serialize()
Returns:

IDictionary<string, object>

Overrides: TagHelperBase.Serialize()

SerializeEvents method.

C#
protected override Dictionary<string, object> SerializeEvents()
Returns:

Dictionary<string, object>

Overrides: TagHelperBase.SerializeEvents()

SerializeSettings method.

C#
protected override Dictionary<string, object> SerializeSettings()
Returns:

Dictionary<string, object>

Overrides: TagHelperBase.SerializeSettings()

Writes the HTML output.

C#
protected override void WriteHtml(TagHelperOutput output)
Parameters:outputTagHelperOutput

The TagHelper output.

Overrides: TagHelperBase.WriteHtml(TagHelperOutput)