ActionSheet

The ActionSheet widget is a sheet containing a set of buttons located one under the other. These buttons usually represent several choices relating to a single task.

Included in: dx.mobile.js, dx.all.js
Module: ui/action_sheet
Export: default
ActionSheet interactive configuration
Copy Code
Copy to Codepen
$("#actionsheet").dxActionSheet({
});

You can create the widget using one of the following approaches.

  • jQuery

    HTML
    <div id="actionSheet"></div>
    JavaScript
    $(function () {
        $("#actionSheet").dxActionSheet({
            dataSource: actionSheetData,
            visible: true
        });
    });
  • Angular

    HTML
    <dx-action-sheet
        [dataSource]="actionSheetData"
        [visible]="true">
    </dx-action-sheet>
  • AngularJS

    HTML
    <div dx-action-sheet="{
        dataSource: actionSheetData,
        visible: true
    }"></div>
  • Knockout

    HTML
    <div data-bind="dxActionSheet: {
        dataSource: actionSheetData,
        visible: true
    }"></div>
  • ASP.NET MVC Wrappers

    Razor C#
    Razor VB
    @(Html.DevExtreme().ActionSheet()
        .ID("actionSheet")
        .DataSource(ActionSheetData)
        .Visible(true)
    )
    @(Html.DevExtreme().ActionSheet() _
        .ID("actionSheet") _
        .DataSource(ActionSheetData) _
        .Visible(True)
    )

Note that DevExtreme widgets require you to link the jQuery library to your application. If you use the Knockout or AngularJS approach, the Knockout or AngularJS library is also required. For detailed information on linking these libraries to your project, refer to the topics in the Installation section.

View Demo

See Also
Show Example:
AngularJS
Knockout
jQuery

Configuration

An object defining configuration options for the ActionSheet widget.

Methods

This section describes the members used to manipulate the widget.

Events

This section describes events fired by this widget.

Default Item Template

This section lists the data source fields that are used in a default template for action sheet items.

By default, a predefined item template is applied to display the items of this widget. This template is based on certain fields of the data source provided for this widget. Below is a list of these fields. If the default item template is not appropriate for your task, implement a custom item template based on these or other fields of your data source.

See Also