IBuilderChangeEvent interface
đ Descriptionâ
Event interface for the OnChange
hook, fired when the user makes a change in the builder.
tip
đ Type declarationâ
interface IBuilderChangeEvent { builder: Builder;Readonly definition: IDefinition;Readonly }
đąī¸ Hover with the mouse over a property name for a tooltip with the description of that property. Click it for more information.
đŠâđģ Exampleâ
const builder = new Builder();
builder.hook("OnChange", "synchronous", (event: IBuilderChangeEvent) => {
console.log("Form definition has changed!");
});
đī¸ Propertiesâ
đˇī¸ builder
â
Contains a reference to the Builder
instance that generated the event.
Typeâ
đˇī¸ definition
â
Contains the updated form definition as a IDefinition
object.