mirror of
https://github.com/datahub-project/datahub.git
synced 2025-09-04 23:00:25 +00:00
17 lines
518 B
Handlebars
17 lines
518 B
Handlebars
![]() |
{{! route attribute is used as a guard to determine if the supplied value is parameters for DynamicLink component}}
|
||
|
{{#if @value.route}}
|
||
|
<LinkTo
|
||
|
@route={{@value.route}}
|
||
|
@models={{this.models}}
|
||
|
@query={{@value.queryParams}}
|
||
|
class={{this.linkClass}}
|
||
|
target={{if @options.openNewTab "_blank"}}>
|
||
|
{{split-text @value.text 65}}
|
||
|
{{#if @options.openNewTab}}
|
||
|
<FaIcon @icon="external-link-alt" @class={{concat this.linkClass "__icon"}}/>
|
||
|
{{/if}}
|
||
|
</LinkTo>
|
||
|
{{else}}
|
||
|
{{@value}}
|
||
|
{{/if}}
|