dynamic-forms / Class

FormResetEvent

Implements:FormEvent

Event dispatched when the form should be reset to its default values.

This event instructs the dynamic form component to restore all field values to their initial default values as defined in the form configuration.

Properties

NameTypeDescription
type
r
implements FormEvent
"form-reset"

Example usage

// Dispatch from a button component
eventBus.dispatch(FormResetEvent);
// Listen for reset events
eventBus.on<FormResetEvent>('form-reset').subscribe(() => {
  console.log('Form was reset to defaults');
});