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

Kendo UI position TagHelper NotificationPositionSettingsTagHelper class.

Definition

Namespace:Kendo.Mvc.TagHelpers

Assembly:Kendo.Mvc.dll

Syntax:

C#
[HtmlTargetElement("position", ParentTag = "kendo-notification", TagStructure = TagStructure.WithoutEndTag)]
[SuppressTagRendering]
public class NotificationPositionSettingsTagHelper : TagHelperChildBase, ITagHelper, ITagHelperComponent

Inheritance: objectTagHelperTagHelperChildBaseNotificationPositionSettingsTagHelper

Implements: ITagHelperITagHelperComponent

Inherited Members TagHelperChildBase.Init(TagHelperContext)TagHelperChildBase.AddSelfToContext(TagHelperContext)TagHelperChildBase.CreateHandler(string)TagHelperChildBase.IdPrefixTagHelper.Process(TagHelperContext, TagHelperOutput)TagHelper.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">
    <position bottom="20" />
</kendo-notification>

Constructors

Initializes a new instance of the NotificationPositionSettingsTagHelper class.

C#
public NotificationPositionSettingsTagHelper()

Properties

Determines the pixel position of the first popup notification with regard to the viewport's bottom edge.

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

Determines the pixel position of the first popup notification with regard to the viewport's left edge.

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

Determines whether the popup notifications will move together with the other page content during scrolling.

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

Determines the pixel position of the first popup notification with regard to the viewport's right edge.

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

Determines the position of the first popup notification with regard to the viewport's top edge. Numeric values are treated as pixels.

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

Methods

Adds the current TagHelper instance to its parent TagHelper.

C#
protected override void AddSelfToParent(TagHelperContext context)
Parameters:contextTagHelperContext

The TagHelper context.

Overrides: TagHelperChildBase.AddSelfToParent(TagHelperContext)

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

Task

Overrides: TagHelperChildBase.ProcessAsync(TagHelperContext, TagHelperOutput)

Serializes the defined settings.

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

Dictionary<string, object>