ActionSheetTagHelper
Kendo UI ActionSheet TagHelper ActionSheetTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("kendo-actionsheet")]
[RestrictChildren("items", new string[] { "action-buttons", "content-template", "footer-template", "popup-animation", "start-button" })]
public class ActionSheetTagHelper : TagHelperBase, ITagHelper, ITagHelperComponent, ITemplateComponent
Inheritance: objectTagHelperTagHelperBaseActionSheetTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-actionsheet
name="actionsheet"
title="Select item"
close-on-click="true"
action-buttons-alignment="ActionButtonsAlignment.Justify"
action-buttons-orientation="ActionButtonsOrientation.Vertical" >
<start-button icon="pencil" />
<popup-animation enabled="true">
<open effects="expand:vertical" />
</popup-animation>
<items>
@* add actionsheet items *@
</items>
</kendo-actionsheet>
Child Tags
Constructors
Initializes a new instance of the ActionSheetTagHelper class.
public ActionSheetTagHelper(IKendoHtmlGenerator generator)
The HTML generator used to generate the tag helper's output.
Properties
Controls the alignment of the action buttons in the footer. This configuation works only in horizontal mode.
public ActionButtonsAlignment? ActionButtonsAlignment { get; set; }
Determines the orientation of the action buttons.
public ActionButtonsOrientation? ActionButtonsOrientation { get; set; }
When the ActionSheet is adaptive, it occupies the full width of the screen and has the option to cover the entire screen if the fullscreen is set to true as well.
public bool? Adaptive { get; set; }
Whether a close button would be rendered in the titlebar. A title needs to be set to get the titlebar rendered.
public bool? CloseButton { get; set; }
Determines whether the ActionSheet will close when clicking outside of it. If set to false, the ActionSheet will remain open until explicitly closed through code or by clicking the close button (if enabled).
public bool? CloseOnClick { get; set; }
The text or the function whose result will be shown within the ActionSheet. By default, the ActionSheet will display the content of the target element. The content template will be disregarded if there are items defined in the widget options.
public string ContentTemplate { get; set; }
The text or the function whose result will be shown within the ActionSheet. By default, the ActionSheet will display the content of the target element. The content template will be disregarded if there are items defined in the widget options. This option expects the name of a JavaScript function that will be called to return the template.
public string ContentTemplateHandler { get; set; }
The text or the function whose result will be shown within the ActionSheet. By default, the ActionSheet will display the content of the target element. The content template will be disregarded if there are items defined in the widget options. This option expects the ID of the script element that contains the template.
public string ContentTemplateId { get; set; }
The text or the function whose result will be shown within the ActionSheet. By default, the ActionSheet will display the content of the target element. The content template will be disregarded if there are items defined in the widget options. This option expects the IHtmlContent instance containing the created HTML.
public IHtmlContent ContentTemplateView { get; set; }
The text or the function whose result will be shown within the footer of the ActionSheet. The footer template will be disregarded if there are actionButtons defined in the widget options.
public string FooterTemplate { get; set; }
The text or the function whose result will be shown within the footer of the ActionSheet. The footer template will be disregarded if there are actionButtons defined in the widget options. This option expects the name of a JavaScript function that will be called to return the template.
public string FooterTemplateHandler { get; set; }
The text or the function whose result will be shown within the footer of the ActionSheet. The footer template will be disregarded if there are actionButtons defined in the widget options. This option expects the ID of the script element that contains the template.
public string FooterTemplateId { get; set; }
The text or the function whose result will be shown within the footer of the ActionSheet. The footer template will be disregarded if there are actionButtons defined in the widget options. This option expects the IHtmlContent instance containing the created HTML.
public IHtmlContent FooterTemplateView { get; set; }
Specifies whether the adaptive actionsheet would cover the entire screen when opened.
public bool? Fullscreen { get; set; }
The name of the JavaScript function that will handle the activate event. Fired when the widget is opened.The event handler function context (available via the this keyword) will be set to the widget instance.
public string OnActivate { get; set; }
The name of the JavaScript function that will handle the close event. Fired when the widget closes.The event handler function context (available via the this keyword) will be set to the widget instance.
public string OnClose { get; set; }
The name of the JavaScript function that will handle the deactivate event. Fired when the widget is closed.The event handler function context (available via the this keyword) will be set to the widget instance.
public string OnDeactivate { get; set; }
The name of the JavaScript function that will handle the kendoKeydown event. Triggered when the user presses a keyboard key while the ActionSheet 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. Fired when the widget opens.The event handler function context (available via the this keyword) will be set to the widget instance.
public string OnOpen { get; set; }
Specifies the subtitle of the component. Requires the title to be configured in order to have the titlebar rendered.
public string Subtitle { get; set; }
Configures the templates for the ActionSheet.
[HtmlAttributeNotBound]
public IDictionary<string, string> Templates { get; }
Implements:
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: