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