Defines a button that appears in an Alert Form

TypeScript
export interface AlertButton<AlertFormContext> extends Omit<AdaptableButton<BaseContext>, 'onClick' | 'label' | 'buttonStyle' | 'hidden' | 'disabled' | 'tooltip'
Extends

Omit<AdaptableButton<BaseContext>, 'onClick' | 'label' | 'buttonStyle' | 'hidden' | 'disabled' | 'tooltip'>

Properties

PropertyDescription
ButtonStyleStyle for the Button
CommandPredefined Command(s) to trigger when button is clicked; implemented in commandHandlers property of Alert Options
LabelLabel to show in the Button
TooltipToolTip to display
adaptableContextCustom application Context provided in AdaptableOptions.adaptableContext

Property Details

ButtonStyle

Style for the Button

TypeScript
ButtonStyle?: ButtonStyle;
Property Value

ButtonStyle

Command

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

TypeScript
Command?: AdaptableAlertCommand | AdaptableAlertCommand[] | string | string[] | ((context: AlertFormContext) => void);
Property Value

AdaptableAlertCommand|AdaptableAlertCommand[] | string | string[] | ((context: AlertFormContext) => void)

Label

Label to show in the Button

TypeScript
Label: string;
Property Value

string

Tooltip

ToolTip to display

TypeScript
Tooltip?: string;
Property Value

string

adaptableContext

Inherited from BaseContext

Custom application Context provided in AdaptableOptions.adaptableContext

TypeScript
adaptableContext: any;
Property Value

any