Kendo UI scrollable TagHelper ContextMenuScrollableSettingsTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
C#
[HtmlTargetElement("scrollable", ParentTag = "kendo-contextmenu", TagStructure = TagStructure.WithoutEndTag)]
[SuppressTagRendering]
public class ContextMenuScrollableSettingsTagHelper : TagHelperChildBase, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperChildBaseContextMenuScrollableSettingsTagHelper
Implements:
Inherited Members
Example:
csharp
@addTagHelper *, Kendo.Mvc
<kendo-contextmenu name="contextmenu">
<scrollable distance="50" />
</kendo-contextmenu>
Constructors
Initializes a new instance of the ContextMenuScrollableSettingsTagHelper class.
C#
public ContextMenuScrollableSettingsTagHelper()
Properties
Sets the scroll amount (in pixels) that the ContextMenu scrolls when the scroll buttons are hovered. Each such distance is animated and then another animation starts with the same distance. If clicking a scroll button, the ContextMenu scrolls by doubling the distance.
C#
public double? Distance { get; set; }
Methods
Adds the current TagHelper instance to its parent TagHelper.
C#
protected override void AddSelfToParent(TagHelperContext context)
The TagHelper context.
Overrides:
C#
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Overrides:
Serializes the defined settings.