Events
rootBuilder.onAnyEvent.subscribe(x => {
if (x.type === 'internal') {
const data = x.internalEvent; // type of JsfFormEventInterface
}
})rootBuilder.onAnyEvent.next({ type: 'custom', customEvent: 123 });{
type: 'internal' | 'external' | any,
customEvent?: any;
externalEvent?: { key: string, data: any },
internalEvent?: JsfFormEventInterface
}Last updated
Was this helpful?