WindowTagHelper
Kendo UI Window TagHelper WindowTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("kendo-window")]
[HtmlTargetElement("window", ParentTag = "editable")]
[HtmlTargetElement("window", ParentTag = "kendo-chartwizard")]
[HtmlTargetElement("ai-assistant-window", ParentTag = "ai")]
[RestrictChildren("popup-animation", new string[] { "content", "window-title", "draggable", "modal", "title" })]
[OutputElementHint("div")]
public class WindowTagHelper : TagHelperBase, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperBaseWindowTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-window name="window" title="Window title">
<content>Window content</content>
</kendo-window>
Child Tags
Constructors
Initializes a new instance of the WindowTagHelper class.
Properties
The buttons for interacting with the window. Predefined array values are "Close", "Refresh", "Minimize", and "Maximize".
public string[] Actions { get; set; }
The element that the Window will be appended to.
public string AppendTo { get; set; }
Determines whether the Window will be focused automatically when opened. The property also influences the focus behavior when an already opened Window is clicked.
public bool? AutoFocus { get; set; }
Specifies a URL or request options that the window should load its content from.
public string ContentUrl { get; set; }
Explicitly states whether a content iframe will be created. For more information, refer to the documentation on using iframes.
public bool? Iframe { get; set; }
The maximum height (in pixels) that may be achieved by resizing the Window.
public string MaxHeight { get; set; }
The maximum width (in pixels) that may be achieved by resizing the Window.
public string MaxWidth { get; set; }
The minimum height (in pixels) that may be achieved by resizing the Window.
public string MinHeight { get; set; }
The minimum width (in pixels) that may be achieved by resizing the Window.
public string MinWidth { get; set; }
The name of the JavaScript function that will handle the activate event. Triggered when a Window has finished its opening animation.
public string OnActivate { get; set; }
The name of the JavaScript function that will handle the close event. Triggered when a Window is closed either by the user or through the close() method.
public string OnClose { get; set; }
The name of the JavaScript function that will handle the deactivate event. Triggered when a Window has finished its closing animation.
public string OnDeactivate { get; set; }
The name of the JavaScript function that will handle the dragend event. Triggered when a Window has been moved by the user.
public string OnDragend { get; set; }
The name of the JavaScript function that will handle the dragstart event. Triggered when the user starts to move the Window.
public string OnDragstart { get; set; }
The name of the JavaScript function that will handle the error event. Triggered when an Ajax request for content fails.
public string OnError { get; set; }
The name of the JavaScript function that will handle the kendoKeydown event. Triggered when the user presses a keyboard key while the Window 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 maximize event. Triggered when the user maximizes the Window. Introduced in 2016.Q1.SP1.
public string OnMaximize { get; set; }
The name of the JavaScript function that will handle the minimize event. Triggered when the user minimizes the Window. Introduced in 2016.Q1.SP1.
public string OnMinimize { get; set; }
The name of the JavaScript function that will handle the open event. Triggered when a Window is opened, that is, when the open() method is called.
public string OnOpen { get; set; }
The name of the JavaScript function that will handle the refresh event. Triggered when the content of a Window has finished loading via Ajax, when the Window iframe has finished loading, or when the Refresh button has been clicked on a Window with static content.
public string OnRefresh { get; set; }
The name of the JavaScript function that will handle the resize event. Triggered when the user resizes the Window.
public string OnResize { get; set; }
The name of the JavaScript function that will handle the restore event. Triggered when the Window is restored to its previous state(maximized or minimized) by pressing the restore button, or when the restore() method is called.
public string OnRestore { get; set; }
Specifies whether the Window will be pinned, that is, that it will not move together with the page content during scrolling.
public bool? Pinned { get; set; }
Specifies the initial left position of the window. Values can specify pixels, percentages, ems or other valid values.
public string PositionLeft { get; set; }
Specifies the initial top position of the window. Values can specify pixels, percentages, ems or other valid values.
public string PositionTop { get; set; }
Enables or disables the ability for users to resize a Window.
public bool? Resizable { get; set; }
Enables (true) or disables (false) the scrolling of the Window contents.
public bool? Scrollable { get; set; }
Sets a predefined size to the Window. The width and height configuration options override the predefined size.The supported values are: auto; small; medium or large.
public string Size { get; set; }
The text in the window title bar. If false, the window will be displayed without a title bar. Note that this will prevent the window from being dragged, and the window titlebar buttons will not be shown.
public string Title { get; set; }
Specifies whether the Window 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: