# AlertButton

Canonical page: https://www.adaptabletools.com/docs/reference/alertbutton

Defines a button that appears in an Alert Form

```ts title="TypeScript"
export interface AlertButton<AlertFormContext> extends Omit<AdaptableButton<BaseContext>, 'onClick' | 'label' | 'buttonStyle' | 'hidden' | 'disabled' | 'tooltip'> 
```

###### Extends

`Omit<`[`AdaptableButton`](https://www.adaptabletools.com/docs/reference/adaptablebutton.md)`<`[`BaseContext`](https://www.adaptabletools.com/docs/reference/basecontext.md)`>, 'onClick' | 'label' | 'buttonStyle' | 'hidden' | 'disabled' | 'tooltip'>`

## Properties

| Property | Type | Description |
| --- | --- | --- |
| [ButtonStyle](https://www.adaptabletools.com/docs/reference/alertbutton.md#buttonstyle) | [`ButtonStyle`](https://www.adaptabletools.com/docs/reference/buttonstyle.md) | Style for the Button |
| [Command](https://www.adaptabletools.com/docs/reference/alertbutton.md#command) | [`AdaptableAlertCommand`](https://www.adaptabletools.com/docs/reference/adaptablealertcommand.md)` \| `[`AdaptableAlertCommand`](https://www.adaptabletools.com/docs/reference/adaptablealertcommand.md)`[] \| string \| string[] \| ((context: AlertFormContext) => void)` | Predefined Command(s) to trigger when button is clicked; implemented in `commandHandlers` property of Alert Options |
| [Label](https://www.adaptabletools.com/docs/reference/alertbutton.md#label) | `string` | Label to show in the Button |
| [Tooltip](https://www.adaptabletools.com/docs/reference/alertbutton.md#tooltip) | `string` | Tooltip to display |
| [adaptableContext](https://www.adaptabletools.com/docs/reference/alertbutton.md#adaptablecontext) | `any` | Custom application Context provided in `AdaptableOptions.adaptableContext` |

## Property Details

### ButtonStyle

Style for the Button

```ts title="TypeScript"
ButtonStyle?: ButtonStyle;
```

###### Property Value

[`ButtonStyle`](https://www.adaptabletools.com/docs/reference/buttonstyle.md)

### Command

Predefined Command(s) to trigger when button is clicked; implemented in `commandHandlers` property of Alert Options

```ts title="TypeScript"
Command?: AdaptableAlertCommand | AdaptableAlertCommand[] | string | string[] | ((context: AlertFormContext) => void);
```

###### Property Value

[`AdaptableAlertCommand`](https://www.adaptabletools.com/docs/reference/adaptablealertcommand.md)` | `[`AdaptableAlertCommand`](https://www.adaptabletools.com/docs/reference/adaptablealertcommand.md)`[] | string | string[] | ((context: AlertFormContext) => void)`

### Label

Label to show in the Button

```ts title="TypeScript"
Label: string;
```

###### Property Value

`string`

### Tooltip

Tooltip to display

```ts title="TypeScript"
Tooltip?: string;
```

###### Property Value

`string`

### adaptableContext

> *Inherited from [BaseContext](https://www.adaptabletools.com/docs/reference/basecontext.md)*

Custom application Context provided in `AdaptableOptions.adaptableContext`

```ts title="TypeScript"
adaptableContext: any;
```

###### Property Value

`any`
