Skip to main content

IBuilderChangeEvent interface

📖 Description​

Event interface for the OnChange hook, fired when the user makes a change in the builder.


Use the hook method if you want to attach multiple listeners to the same event. If you just need one listener, use the onChange event of the Builder instance.

📃 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.



🏷ī¸ definition​

Contains the updated form definition as a IDefinition object.