# 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](https://www.telerik.com/kendo-angular-ui/components/navigation/actionsheet/action-buttons#using-the-actions-collection)
* [Using a footer template](https://www.telerik.com/kendo-angular-ui/components/navigation/actionsheet/action-buttons#using-a-footer-template)

## Using the Actions Collection

You can define action buttons in the ActionSheet by passing an [`ActionSheetAction`](https://www.telerik.com/kendo-angular-ui/components/navigation/api/actionsheetaction) collection to the [`actions`](https://www.telerik.com/kendo-angular-ui/components/navigation/api/actionsheetcomponent#actions) property of the component.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/navigation/actionsheet/action-buttons/actions-collection/source.txt)

To customize the alignment and the orientation of the action buttons, you can use the [`actionsLayout`](https://www.telerik.com/kendo-angular-ui/components/navigation/api/actionsheetcomponent#actionslayout) option of the ActionSheet component.

```html HTML
<kendo-actionsheet
    [actions]="actions"
    [actionsLayout]="actionsLayout"
    ...>
</kendo-actionsheet>
```

```ts TypeScript
public actions: ActionSheetAction[] = [
    { text: 'Confirm', svgIcon: this.checkIcon, themeColor: 'primary' },
    { text: 'Cancel', svgIcon: this.cancelIcon }
];

public actionsLayout: ActionSheetActionsLayout = {
    orientation: 'horizontal',
    alignment: 'start',
};
```

The ActionSheet also emits an [`action`](https://www.telerik.com/kendo-angular-ui/components/navigation/api/actionsheetcomponent#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.

## Using a Footer Template

For a more customizable approach, you can use the [Button component](https://www.telerik.com/kendo-angular-ui/components/buttons/button) to render the desired action buttons in a custom [`kendoActionSheetFooterTemplate`](https://www.telerik.com/kendo-angular-ui/components/navigation/api/actionsheetfootertemplatedirective).

> The [`actionsLayout`](https://www.telerik.com/kendo-angular-ui/components/navigation/api/actionsheetcomponent#actionslayout) property 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.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/navigation/actionsheet/action-buttons/footer-template/source.txt)

## Suggested Links

* [ActionSheet Footer Template](https://www.telerik.com/kendo-angular-ui/components/navigation/actionsheet/templates#footer-template)
* [API Reference of the ActionSheetComponent](https://www.telerik.com/kendo-angular-ui/components/navigation/api/actionsheetcomponent)
