Kendo UI modal TagHelper WindowModalSettingsTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
C#
[HtmlTargetElement("modal", ParentTag = "kendo-window", TagStructure = TagStructure.WithoutEndTag)]
[HtmlTargetElement("modal", ParentTag = "window", TagStructure = TagStructure.WithoutEndTag)]
[HtmlTargetElement("modal", ParentTag = "ai-assistant-window", TagStructure = TagStructure.WithoutEndTag)]
[SuppressTagRendering]
public class WindowModalSettingsTagHelper : TagHelperChildBase, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperChildBaseWindowModalSettingsTagHelper
Implements:
Inherited Members
Example:
csharp
@addTagHelper *, Kendo.Mvc
<kendo-window name="window">
<modal enabled="true" />
</kendo-window>
Constructors
Initializes a new instance of the WindowModalSettingsTagHelper class.
C#
public WindowModalSettingsTagHelper()
Properties
Specifies whether the document should stop scrolling when modal dialog is window. Closing it should restore the initial document overflow. Note that it's not supported to have multiple windows with different preventScroll setting.
C#
public bool? PreventScroll { 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.