-
Notifications
You must be signed in to change notification settings - Fork 135
Platform: Link Component Technical Design
Kevin Okamoto edited this page Feb 3, 2020
·
4 revisions
Simple anchor link. See Fundamental-Styles implementation for reference.
<fdp-link [href]="'#'"
[hreflang]="'en'"
[download]="'/path/to/download/file'"
[media]="'print and (resolution:300dpi)'"
[rel]="'nofollow'"]
[target]="target"
[type]="'text/html'">Link</fdp-link>
<fdp-link [href]="'#'"[disabled]="true">Disabled Link</fdp-link>
The filename of the file which will be downloaded when the user clicks on the link.
URL of the page the link references.
The language of the linked document. (e.g. 'en', 'fr', 'de', 'jp')
The media/device that the linked document is optimized for.
The relationship between current document and linked document. (e.g. 'alternate', 'external', 'nofollow')
Specifies where to open the linked document.
The media type of the linked document.
Sets link in "disabled" mode.
<a class="fd-link" [attr.href]="href" [attr.aria-disabled]="disabled"><ng-content></ng-content></a>