DialogTagHelper
Kendo UI Dialog TagHelper DialogTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("kendo-dialog")]
[HtmlTargetElement("editable-window", ParentTag = "editable")]
[RestrictChildren("actions", new string[] { "content", "popup-animation", "dialog-title", "modal", "kendo-dialog-messages-settings" })]
[OutputElementHint("div")]
public class DialogTagHelper : TagHelperBase, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperBaseDialogTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-dialog name="dialog">
<content>Dialog content</content>
</kendo-dialog>
Child Tags
Constructors
Initializes a new instance of the DialogTagHelper class.
Properties
Specifies the possible layout of the action buttons in the Dialog.Note: Stretched layout has no effect in browsers, like IE9, that do not support flexbox.Possible values are: normal or stretched.
public string ButtonLayout { get; set; }
Specifies whether a close button should be rendered at the top corner of the dialog.
public bool? Closable { get; set; }
The maximum height (in pixels) that may be achieved by resizing the dialog.
public string MaxHeight { get; set; }
The maximum width (in pixels) that may be achieved by resizing the dialog.
public string MaxWidth { get; set; }
The minimum height (in pixels) that may be achieved by resizing the dialog.
public string MinHeight { get; set; }
The minimum width (in pixels) that may be achieved by resizing the dialog.
public string MinWidth { get; set; }
Specifies whether the dialog should show a modal overlay over the page.
public bool? Modal { get; set; }
The name of the JavaScript function that will handle the close event. Triggered when a Dialog is closed (by a user or through the close() method).
public string OnClose { get; set; }
The name of the JavaScript function that will handle the hide event. Triggered when a Dialog has finished its closing animation.
public string OnHide { get; set; }
The name of the JavaScript function that will handle the initOpen event. Triggered when a Dialog is opened for the first time (i.e. the open() method is called).
public string OnInitOpen { get; set; }
The name of the JavaScript function that will handle the kendoKeydown event. Triggered when the user presses a keyboard key while the Dialog is focused.The event handler function context (available via the this keyword) will be set to the widget instance.
public string OnKendoKeydown { get; set; }
The name of the JavaScript function that will handle the open event. Triggered when a Dialog is opened (i.e. the open() method is called).
public string OnOpen { get; set; }
The name of the JavaScript function that will handle the show event. Triggered when a Dialog has finished its opening animation.
public string OnShow { get; set; }
Set predefined size to the dialog. The width and height configuration options override the predefined size.Possible values are: auto; small; medium or large.
public string Size { get; set; }
The text in the dialog title bar. If false, the dialog will be displayed without a title bar.
public string Title { get; set; }
Specifies whether the dialog will be initially visible.
public bool? Visible { get; set; }
Methods
Gets the initialization script.
protected override string GetInitializationScript()
The initialization script.
Overrides:
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Overrides:
Serializes the defined settings.
public override IDictionary<string, object> Serialize()
Overrides:
SerializeEvents method.
protected override Dictionary<string, object> SerializeEvents()
Overrides:
SerializeSettings method.
protected override Dictionary<string, object> SerializeSettings()
Overrides:
Writes the HTML output.
protected override void WriteHtml(TagHelperOutput output)
The TagHelper output.
Overrides: