FormResetEvent
| Implements: | |
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
| Name | Type | Description |
|---|---|---|
| type r implements | "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');
});