mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
978 B
978 B
Added, Status
Added | Status |
---|---|
v2.0.0 | Active |
Widget component
Base class for standard and custom widget classes.
Basic Usage
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 {}
Properties
Name | Type | Default | Description |
---|---|---|---|
readOnly | boolean | false | Does the widget show a read-only value? (ie, can't be edited) |
field | FormFieldModel | Data to be displayed in the field |
Details
The Widget component 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.