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