alfresco-ng2-components/docs/insights/widget.component.md
Andy Stark e03f3a1a6b [ADF-3323] Fixed broken links in doc files (#3662)
* [ADF-3323] Fixed URL path to Typescript source files

* [ADF-3323] Fixed and checked broken links caused by previous bug
2018-08-14 15:42:45 +01:00

1.1 KiB

Added, Status, Last reviewed
Added Status Last reviewed
v2.0.0 Active 2018-03-29

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 {}

Class members

Properties

Name Type Default value Description
field any Data to be displayed in the field

Events

Name Type Description
fieldChanged EventEmitter<any> (

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.

See also