@serenity-is/corelib / SubDialogHelper / bindToDataChange
Function: bindToDataChange()
bindToDataChange(
dialog,owner,dataChange,useTimeout?):any
Defined in: src/ui/helpers/subdialoghelper.ts:20
Binds a data change handler to a dialog so it is invoked when the dialog raises a data change event.
Parameters
dialog
any
The dialog to bind to.
owner
Widget<any>
The owner widget.
dataChange
(ev) => void
The handler invoked on data change.
useTimeout?
boolean
Whether to invoke the handler asynchronously via a timeout.
Returns
any
The dialog.