@serenity-is/corelib / DialogButton
Interface: DialogButton
Options for a message dialog button
Properties
click()?
optionalclick: (e) =>false|void|Promise<false|void>
Click handler
Parameters
e
MouseEvent
Returns
false | void | Promise<false | void>
Defined in
cssClass?
optionalcssClass:string
CSS class for button
Defined in
hint?
optionalhint:string
Button hint
Defined in
icon?
optionalicon:IconClassName
Button icon
Defined in
result?
optionalresult: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
text?
optionaltext:string
Button text