@serenity-is/corelib / DialogButton
Interface: DialogButton
Defined in: src/base/dialogs.tsx:12
Options for a message dialog button
Properties
click()?
optionalclick: (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?
optionalcssClass:string
Defined in: src/base/dialogs.tsx:22
CSS class for button
hint?
optionalhint:string
Defined in: src/base/dialogs.tsx:16
Button hint
icon?
optionalicon:IconClassName
Defined in: src/base/dialogs.tsx:18
Button icon
result?
optionalresult: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?
optionaltext:string
Defined in: src/base/dialogs.tsx:14
Button text