New to Telerik UI for ASP.NET Core? Start a free 30-day trial

Defines the fluent API for configuring the Kendo UI ActionSheet

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class ActionSheetBuilder : WidgetBuilderBase<ActionSheet, ActionSheetBuilder>, IHtmlContent

Inheritance: objectHelperResultWidgetBuilderBase<ActionSheet, ActionSheetBuilder>ActionSheetBuilder

Implements: IHtmlContent

Inherited Members WidgetBuilderBase<ActionSheet, ActionSheetBuilder>.ToComponent()WidgetBuilderBase<ActionSheet, ActionSheetBuilder>.Expression(string)WidgetBuilderBase<ActionSheet, ActionSheetBuilder>.Explorer(ModelExplorer)WidgetBuilderBase<ActionSheet, ActionSheetBuilder>.Name(string)WidgetBuilderBase<ActionSheet, ActionSheetBuilder>.Deferred(bool)WidgetBuilderBase<ActionSheet, ActionSheetBuilder>.HtmlAttributes(object)WidgetBuilderBase<ActionSheet, ActionSheetBuilder>.HtmlAttributes(IDictionary<string, object>)WidgetBuilderBase<ActionSheet, ActionSheetBuilder>.ScriptAttributes(object, bool)WidgetBuilderBase<ActionSheet, ActionSheetBuilder>.ScriptAttributes(IDictionary<string, object>, bool)WidgetBuilderBase<ActionSheet, ActionSheetBuilder>.Render()WidgetBuilderBase<ActionSheet, ActionSheetBuilder>.ToHtmlString()WidgetBuilderBase<ActionSheet, ActionSheetBuilder>.WriteTo(TextWriter, HtmlEncoder)WidgetBuilderBase<ActionSheet, ActionSheetBuilder>.ToClientTemplate()WidgetBuilderBase<ActionSheet, ActionSheetBuilder>.AsModule(bool)WidgetBuilderBase<ActionSheet, ActionSheetBuilder>.ComponentWidgetBuilderBase<ActionSheet, ActionSheetBuilder>.ContainerHelperResult.WriteTo(TextWriter, HtmlEncoder)HelperResult.WriteActionobject.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

Initializes a new instance of the ActionSheetBuilder class.

C#
public ActionSheetBuilder(ActionSheet component)
Parameters:componentActionSheet

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.

C#
public ActionSheetBuilder ActionButtons(Action<ActionSheetActionButtonFactory> configurator)
Parameters:configuratorAction<ActionSheetActionButtonFactory>

The ActionSheetActionButtonFactory for the actionbuttons setting.

Returns:

ActionSheetBuilder

Returns the current instance of ActionSheetBuilder .

Controls the alignment of the action buttons in the footer. This configuation works only in horizontal mode.

C#
public ActionSheetBuilder ActionButtonsAlignment(ActionButtonsAlignment value)
Parameters:valueActionButtonsAlignment

The value for ActionButtonsAlignment

Returns:

ActionSheetBuilder

Returns the current ActionSheetBuilder instance.

Determines the orientation of the action buttons.

C#
public ActionSheetBuilder ActionButtonsOrientation(ActionButtonsOrientation value)
Parameters:valueActionButtonsOrientation

The value for ActionButtonsOrientation

Returns:

ActionSheetBuilder

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.

C#
public ActionSheetBuilder Adaptive()
Returns:

ActionSheetBuilder

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.

C#
public ActionSheetBuilder Adaptive(bool value)
Parameters:valuebool

The value for Adaptive

Returns:

ActionSheetBuilder

Returns the current ActionSheetBuilder instance.

Configures the opening and closing animations of the ActionSheet.

C#
public ActionSheetBuilder Animation(Action<PopupAnimationBuilder> configurator)
Parameters:configuratorAction<PopupAnimationBuilder>

The configurator that will configure the opening and closing animation.

Returns:

ActionSheetBuilder

Returns the current instance of ActionSheetBuilder .

Disables or opens the animation.

C#
public ActionSheetBuilder Animation(bool value)
Parameters:valuebool

The value that will disable the animation. This property has effect only in adaptive mode. True is not a valid configuration.

Returns:

ActionSheetBuilder

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.

C#
public ActionSheetBuilder CloseButton()
Returns:

ActionSheetBuilder

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.

C#
public ActionSheetBuilder CloseButton(bool value)
Parameters:valuebool

The value for CloseButton

Returns:

ActionSheetBuilder

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).

C#
public ActionSheetBuilder CloseOnClick(bool value)
Parameters:valuebool

The value for CloseOnClick

Returns:

ActionSheetBuilder

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.

C#
public ActionSheetBuilder ContentTemplate(string value)
Parameters:valuestring

The value for ContentTemplate

Returns:

ActionSheetBuilder

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.

C#
public ActionSheetBuilder ContentTemplate<TModel>(TemplateBuilder<TModel> template)
Parameters:templateTemplateBuilder<TModel>

A Template component that configures the contenttemplate.

Returns:

ActionSheetBuilder

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.

C#
public ActionSheetBuilder ContentTemplateHandler(string templateHandler)
Parameters:templateHandlerstring

The handler that returs the template for ContentTemplate

Returns:

ActionSheetBuilder

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.

C#
public ActionSheetBuilder ContentTemplateId(string templateId)
Parameters:templateIdstring

The ID of the template element for ContentTemplate

Returns:

ActionSheetBuilder

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.

C#
public ActionSheetBuilder ContentTemplateView(IHtmlContent templateView)
Parameters:templateViewIHtmlContent

The view that contains the template for ContentTemplate

Returns:

ActionSheetBuilder

Returns the current ActionSheetBuilder instance.

Configures the client-side events.

C#
public ActionSheetBuilder Events(Action<ActionSheetEventBuilder> configurator)
Parameters:configuratorAction<ActionSheetEventBuilder>

The client events action.

Returns:

ActionSheetBuilder

Returns the current ActionSheetBuilder instance.

Example:
C#
@(Html.Kendo().ActionSheet()
.Name("ActionSheet")
.Events(events =&gt; events
.Activate("onActivate")
)
)

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.

C#
public ActionSheetBuilder FooterTemplate(string value)
Parameters:valuestring

The value for FooterTemplate

Returns:

ActionSheetBuilder

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.

C#
public ActionSheetBuilder FooterTemplate<TModel>(TemplateBuilder<TModel> template)
Parameters:templateTemplateBuilder<TModel>

A Template component that configures the footertemplate.

Returns:

ActionSheetBuilder

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.

C#
public ActionSheetBuilder FooterTemplateHandler(string templateHandler)
Parameters:templateHandlerstring

The handler that returs the template for FooterTemplate

Returns:

ActionSheetBuilder

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.

C#
public ActionSheetBuilder FooterTemplateId(string templateId)
Parameters:templateIdstring

The ID of the template element for FooterTemplate

Returns:

ActionSheetBuilder

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.

C#
public ActionSheetBuilder FooterTemplateView(IHtmlContent templateView)
Parameters:templateViewIHtmlContent

The view that contains the template for FooterTemplate

Returns:

ActionSheetBuilder

Returns the current ActionSheetBuilder instance.

Specifies whether the adaptive actionsheet would cover the entire screen when opened.

C#
public ActionSheetBuilder Fullscreen()
Returns:

ActionSheetBuilder

Returns the current ActionSheetBuilder instance.

Specifies whether the adaptive actionsheet would cover the entire screen when opened.

C#
public ActionSheetBuilder Fullscreen(bool value)
Parameters:valuebool

The value for Fullscreen

Returns:

ActionSheetBuilder

Returns the current ActionSheetBuilder instance.

A JavaScript array that contains the ActionSheet's items configuration.

C#
public ActionSheetBuilder Items(Action<ActionSheetItemFactory> configurator)
Parameters:configuratorAction<ActionSheetItemFactory>

The ActionSheetItemFactory for the items setting.

Returns:

ActionSheetBuilder

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.

C#
public ActionSheetBuilder StartButton(Action<ActionSheetStartButtonSettingsBuilder> configurator)
Parameters:configuratorAction<ActionSheetStartButtonSettingsBuilder>

The ActionSheetStartButtonSettingsBuilder for the startbutton setting.

Returns:

ActionSheetBuilder

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.

C#
public ActionSheetBuilder Subtitle(string value)
Parameters:valuestring

The value for Subtitle

Returns:

ActionSheetBuilder

Returns the current ActionSheetBuilder instance.

Specifies the title of the component

C#
public ActionSheetBuilder Title(string value)
Parameters:valuestring

The value for Title

Returns:

ActionSheetBuilder

Returns the current ActionSheetBuilder instance.