Skip to content

@serenity-is/corelib / DialogButton

Interface: DialogButton

Options for a message dialog button

Properties

click()?

optional click: (e) => false | void | Promise<false | void>

Click handler

Parameters

e

MouseEvent

Returns

false | void | Promise<false | void>

Defined in

src/base/dialogs.tsx:19


cssClass?

optional cssClass: string

CSS class for button

Defined in

src/base/dialogs.tsx:21


hint?

optional hint: string

Button hint

Defined in

src/base/dialogs.tsx:15


icon?

optional icon: IconClassName

Button icon

Defined in

src/base/dialogs.tsx:17


result?

optional result: string

The code that is returned from message dialog function when this button is clicked. If this is set, and click event will not be defaultPrevented dialog will close.

Defined in

src/base/dialogs.tsx:25


text?

optional text: string

Button text

Defined in

src/base/dialogs.tsx:13