Constructor
new LabelComponent(dataObjectopt, optionsopt)
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
dataObject |
DataObject |
<optional> |
null | |
options |
Object |
<optional> |
{} | See the TextComponent.constructor options, including dynamic text formatting. |
Examples
const component = new LabelComponent(undefined, {
text: 'Example'
})
const component = new LabelComponent(yourDataModel, {
dataField: 'title'
})