ActionSheetBuilder
Defines the fluent API for configuring the Kendo UI ActionSheet
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class ActionSheetBuilder : WidgetBuilderBase<ActionSheet, ActionSheetBuilder>, IHtmlContent
Inheritance: objectHelperResultWidgetBuilderBase<ActionSheet, ActionSheetBuilder>ActionSheetBuilder
Implements:
Inherited Members
Constructors
Initializes a new instance of the ActionSheetBuilder class.
public ActionSheetBuilder(ActionSheet component)
The ActionSheet component.
Methods
A JavaScript array that contains the ActionSheet's action buttons configuration. They will be rendered in the footer of the widget.
public ActionSheetBuilder ActionButtons(Action<ActionSheetActionButtonFactory> configurator)
The ActionSheetActionButtonFactory for the actionbuttons setting.
Returns:Returns the current instance of ActionSheetBuilder .
Controls the alignment of the action buttons in the footer. This configuation works only in horizontal mode.
public ActionSheetBuilder ActionButtonsAlignment(ActionButtonsAlignment value)
The value for ActionButtonsAlignment
Returns:Returns the current ActionSheetBuilder instance.
Determines the orientation of the action buttons.
public ActionSheetBuilder ActionButtonsOrientation(ActionButtonsOrientation value)
The value for ActionButtonsOrientation
Returns:Returns the current ActionSheetBuilder instance.
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.
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 ActionSheetBuilder Adaptive(bool value)
The value for Adaptive
Returns:Returns the current ActionSheetBuilder instance.
Configures the opening and closing animations of the ActionSheet.
public ActionSheetBuilder Animation(Action<PopupAnimationBuilder> configurator)
The configurator that will configure the opening and closing animation.
Returns:Returns the current instance of ActionSheetBuilder .
Disables or opens the animation.
public ActionSheetBuilder Animation(bool value)
The value that will disable the animation. This property has effect only in adaptive mode. True is not a valid configuration.
Returns:Returns the current instance of ActionSheetBuilder .
Whether a close button would be rendered in the titlebar. A title needs to be set to get the titlebar rendered.
public ActionSheetBuilder CloseButton()
Returns the current ActionSheetBuilder instance.
Whether a close button would be rendered in the titlebar. A title needs to be set to get the titlebar rendered.
public ActionSheetBuilder CloseButton(bool value)
The value for CloseButton
Returns:Returns the current ActionSheetBuilder instance.
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 ActionSheetBuilder CloseOnClick(bool value)
The value for CloseOnClick
Returns:Returns the current ActionSheetBuilder instance.
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 ActionSheetBuilder ContentTemplate(string value)
The value for ContentTemplate
Returns:Returns the current ActionSheetBuilder instance.
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 ActionSheetBuilder ContentTemplate<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the contenttemplate.
Returns:Returns the current ActionSheetBuilder instance.
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 ActionSheetBuilder ContentTemplateHandler(string templateHandler)
The handler that returs the template for ContentTemplate
Returns:Returns the current ActionSheetBuilder instance.
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 ActionSheetBuilder ContentTemplateId(string templateId)
The ID of the template element for ContentTemplate
Returns:Returns the current ActionSheetBuilder instance.
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 ActionSheetBuilder ContentTemplateView(IHtmlContent templateView)
The view that contains the template for ContentTemplate
Returns:Returns the current ActionSheetBuilder instance.
Configures the client-side events.
public ActionSheetBuilder Events(Action<ActionSheetEventBuilder> configurator)
The client events action.
Returns:Returns the current ActionSheetBuilder instance.
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 ActionSheetBuilder FooterTemplate(string value)
The value for FooterTemplate
Returns:Returns the current ActionSheetBuilder instance.
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 ActionSheetBuilder FooterTemplate<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the footertemplate.
Returns:Returns the current ActionSheetBuilder instance.
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 ActionSheetBuilder FooterTemplateHandler(string templateHandler)
The handler that returs the template for FooterTemplate
Returns:Returns the current ActionSheetBuilder instance.
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 ActionSheetBuilder FooterTemplateId(string templateId)
The ID of the template element for FooterTemplate
Returns:Returns the current ActionSheetBuilder instance.
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 ActionSheetBuilder FooterTemplateView(IHtmlContent templateView)
The view that contains the template for FooterTemplate
Returns:Returns the current ActionSheetBuilder instance.
Specifies whether the adaptive actionsheet would cover the entire screen when opened.
Specifies whether the adaptive actionsheet would cover the entire screen when opened.
public ActionSheetBuilder Fullscreen(bool value)
The value for Fullscreen
Returns:Returns the current ActionSheetBuilder instance.
A JavaScript array that contains the ActionSheet's items configuration.
public ActionSheetBuilder Items(Action<ActionSheetItemFactory> configurator)
The ActionSheetItemFactory for the items setting.
Returns:Returns the current instance of ActionSheetBuilder .
When configured, a start button will be rendered in the left side of the header section of the ActionSheet. Typically used for navigation or back functionality. The button is only visible when title is also specified.
public ActionSheetBuilder StartButton(Action<ActionSheetStartButtonSettingsBuilder> configurator)
The ActionSheetStartButtonSettingsBuilder for the startbutton setting.
Returns:Returns the current instance of ActionSheetBuilder .
Specifies the subtitle of the component. Requires the title to be configured in order to have the titlebar rendered.
public ActionSheetBuilder Subtitle(string value)
The value for Subtitle
Returns:Returns the current ActionSheetBuilder instance.
Specifies the title of the component
public ActionSheetBuilder Title(string value)
The value for Title
Returns:Returns the current ActionSheetBuilder instance.