@serenity-is/corelib / DialogButton

Interface: DialogButton

Defined in: src/base/dialogs.tsx:12

Options for a message dialog button

Properties

click()?

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

Defined in: src/base/dialogs.tsx:20

Click handler

Parameters

e

MouseEvent

Returns

false | void | Promise<false | void>


cssClass?

optional cssClass: string

Defined in: src/base/dialogs.tsx:22

CSS class for button


hint?

optional hint: string

Defined in: src/base/dialogs.tsx:16

Button hint


icon?

optional icon: IconClassName

Defined in: src/base/dialogs.tsx:18

Button icon


result?

optional result: string

Defined in: src/base/dialogs.tsx:26

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.


text?

optional text: string

Defined in: src/base/dialogs.tsx:14

Button text