Constructor
new LinkComponent(dataObjectopt, optionsopt)
Parameters:
Name | Type | Attributes | Default | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dataObject |
DataObject |
<optional> |
null | |||||||||||
options |
Object |
<optional> |
{} | See the TextComponent.constructor options, including dynamic text formatting.
Properties
|
- Source:
Examples
Use static text
const component = new LinkComponent(undefined, {
text: 'Click me',
url: '/some-other-page/'
})
Use bound text
const component = new LinkComponent(yourDataModel, {
dataField: 'name',
url: '#some-other-view'
})