* @class * * ### Overview * The `ui5-link` is a hyperlink component that is used to navigate to other * apps and web pages, or to trigger actions. * It is a clickable text element, visualized in such a way that it stands out * from the standard text. * On hover, it changes its style to an und
| 75 | * **Note:** Although this slot accepts HTML Elements, it is strongly recommended that you only use text in order to preserve the intended design. |
| 76 | */ |
| 77 | @customElement({ |
| 78 | tag: "ui5-link", |
| 79 | languageAware: true, |
| 80 | renderer: jsxRenderer, |
| 81 | template: LinkTemplate, |
| 82 | styles: linkCss, |
| 83 | }) |
| 84 | /** |
| 85 | * Fired when the component is triggered either with a mouse/tap |
| 86 | * or by using the Enter key. |
| 87 | * @public |
| 88 | * @param {boolean} altKey Returns whether the "ALT" key was pressed when the event was triggered. |
| 89 | * @param {boolean} ctrlKey Returns whether the "CTRL" key was pressed when the event was triggered. |
| 90 | * @param {boolean} metaKey Returns whether the "META" key was pressed when the event was triggered. |
| 91 | * @param {boolean} shiftKey Returns whether the "SHIFT" key was pressed when the event was triggered. |
| 92 | */ |
| 93 | @event("click", { |
| 94 | bubbles: true, |
| 95 | cancelable: true, |
| 96 | }) |
| 97 | class Link extends UI5Element implements ITabbable { |
| 98 | eventDetails!: { |
| 99 | click: LinkClickEventDetail; |
| 100 | } |
| 101 | /** |
| 102 | * Defines whether the component is disabled. |
| 103 | * |
| 104 | * **Note:** When disabled, the click event cannot be triggered by the user. |
| 105 | * @default false |
| 106 | * @public |
| 107 | */ |
| 108 | @property({ type: Boolean }) |
| 109 | disabled = false; |
| 110 | |
| 111 | /** |
| 112 | * Defines the tooltip of the component. |
| 113 | * @default undefined |
| 114 | * @public |
| 115 | * @since 2.0.0 |
| 116 | */ |
| 117 | @property() |
| 118 | tooltip?: string; |
| 119 | |
| 120 | /** |
| 121 | * Defines the component href. |
| 122 | * |
| 123 | * **Note:** Standard hyperlink behavior is supported. |
| 124 | * @default undefined |
| 125 | * @public |
| 126 | */ |
| 127 | @property() |
| 128 | href?: string; |
| 129 | |
| 130 | /** |
| 131 | * Defines the component target. |
| 132 | * |
| 133 | * **Notes:** |
| 134 | * |
nothing calls this directly
no test coverage detected