Class: LabelComponent

LabelComponent(dataObjectopt, optionsopt)

LabelComponent displays a single line of text

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.
Source:
Examples

Use static text

const component = new LabelComponent(undefined, {
	text: 'Example'
})

Use bound text

const component = new LabelComponent(yourDataModel, {
	dataField: 'title'
})