PopupTagHelper
Kendo UI Popup TagHelper PopupTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("kendo-popup")]
[RestrictChildren("popup-animation", new string[] { "content" })]
[OutputElementHint("div")]
public class PopupTagHelper : TagHelperBase, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperBasePopupTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-popup name="popup" anchor="#anchorElement"></kendo-popup>
Child Tags
Constructors
Initializes a new instance of the PopupTagHelper class.
Properties
Specifies the element that will be used as an anchor. The widget will open next to that element.
public string Anchor { get; set; }
Which element the popup will be appended to. The element needs to be relatively positioned.
public string AppendTo { get; set; }
Configures how the popup should behave when it cannot be properly displayed and fully visible, if its origin and position settings are obeyed.Valid values are: "fit", "flip", "flip fit" and "fit flip". "Fit" allows the popup to be shifted (moved) until it is fully visible. "Flip" allows the popup to switch its position, according to its anchor. If two words are used, the first one applies to the vertical dimension and the second one - to the horizontal dimension. If one word is used, the setting is applied to both dimensions.
public string Collision { get; set; }
The name of the JavaScript function that will handle the activate event. Fires when the popup is opened
public string OnActivate { get; set; }
The name of the JavaScript function that will handle the close event. Fires when the popup closes
public string OnClose { get; set; }
The name of the JavaScript function that will handle the deactivate event. Fires when the popup is closed
public string OnDeactivate { get; set; }
The name of the JavaScript function that will handle the open event. Fires when the popup opens
public string OnOpen { get; set; }
Specifies how to position the popup element based on anchor point. The value is space separated "y" plus "x" position.The available "y" positions are: - "bottom" - "center" - "top"The available "x" positions are: - "left" - "center" - "right"
public string Origin { get; set; }
Specifies which point of the popup element to attach to the anchor's origin point. The value is space separated "y" plus "x" position.The available "y" positions are: - "bottom" - "center" - "top"The available "x" positions are: - "left" - "center" - "right"
public string Position { 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: