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
Name |
Type |
Attributes |
Default |
Description |
url |
string
|
<optional>
|
''
|
The URL to which the link should anchor. This can conflict with the `options.anchor` passed to Component.constructor. |
|
- 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'
})