Base class for all standard and custom form widgets. All widgets must extend this class.
import { Component } from '@angular/core';
import { WidgetComponent } from '@alfresco/adf-core';
@Component({
selector: 'custom-editor',
template: `
<div style="color: red">Look, I'm a custom editor!</div>
`
})
export class CustomEditorComponent extends WidgetComponent {}
Name | Type | Default value | Description |
---|---|---|---|
field | any |
field. |
Name | Type | Description |
---|---|---|
fieldChanged | EventEmitter<any> |
fieldChanged. |
The WidgetComponent
is the base class for all standard and custom form widgets.
See the Form Extensibility and Customisation page for full details about
implementing custom widgets.