The ActionSheet component is a pop-up sheet that contains a set of buttons. These buttons allow users to perform custom actions related to a single task (call, send a message, delete, or edit a selected contact). This demo shows how to create a simple ActionSheet and handle button clicks.
Specify Buttons and Title
ActionSheet can contain multiple buttons. To specify and configure them, use one of these properties:
Accepts a local data array.
For each button, you can specify a text, type, icon, template, and other properties. In this demo, the ActionSheet buttons are configured in a local array assigned to the dataSource property. Each button includes the text property only.
If you want to display a title, assign the text to the title property.
Handle Button Clicks
You can assign a function to the onItemClick property to handle button clicks. Use the
e.itemData field within the function to determine which button was clicked. You can also use the onCancelClick property handle a click on the built-in Cancel button. In this demo, the ActionSheet component displays a notification with the button's name when you click a button.
If you have technical questions, please create a support ticket in the DevExpress Support Center.