Action Buttons
The Kendo UI for Angular ActionSheet provides options for rendering action buttons in the component and customizing their content and layout.
To configure the action buttons of the ActionSheet component, use either of the following approaches:
Using the Actions Collection
You can define action buttons in the ActionSheet by passing an ActionSheetAction collection to the actions property of the component.
To customize the alignment and the orientation of the action buttons, you can use the actionsLayout option of the ActionSheet component.
<kendo-actionsheet
[actions]="actions"
[actionsLayout]="actionsLayout"
...>
</kendo-actionsheet>The ActionSheet also emits an action event that fires when any of the defined action buttons is clicked. This event allows you to implement custom on-click logic for the respective action button.
The following example demonstrates how to configure the action buttons in the ActionSheet and their available layout customization options.
Using a Footer Template
For a more customizable approach, you can use the Button component to render the desired action buttons in a custom kendoActionSheetFooterTemplate.
The
actionsLayoutproperty of the ActionSheet component works with the footer template as well.
The following example demonstrates how to render action buttons in the ActionSheet by using a custom footer template.