Builder API Events

Property

  • builderAPIEvents

Purpose

  • Subscribe to various events
interface BuilderAPIEvents {
  onComponentAdded?: (field: Field) => any;
  onComponentDeleted?: (field: Field) => any;
  onRowDeleted?: (rowIndex: number) => any;
  onComponentPropertiesOpened?: (field: Field) => any;
  onComponentPropertiesClosed?: (field: Field) => any;
  onTabChanged?: (definition: FormDefinition) => any;
  onTabAdded?: (tab: FormTab) => any;
  onTabDeleted?: (tab: FormTab) => any;
  onComponentImported?: (componentImport: ComponentImport) => any;
  onFormMounted?: (definition: FormDefinition) => any;
  onViewChanged?: (view: views) => any;
  onAddChoice?: (params: onAddChoiceParams, field: Field) => any;
}