* @class * Base class for the items that are accepted by the `ui5-side-navigation` component. * * @constructor * @extends UI5Element * @abstract * @public * @since 1.19.0
| 25 | * @since 1.19.0 |
| 26 | */ |
| 27 | class SideNavigationItemBase extends UI5Element implements ITabbable { |
| 28 | eventDetails!: { |
| 29 | click: SideNavigationItemClickEventDetail |
| 30 | } |
| 31 | |
| 32 | /** |
| 33 | * Defines the text of the item. |
| 34 | * |
| 35 | * @public |
| 36 | * @default undefined |
| 37 | */ |
| 38 | @property() |
| 39 | text?: string; |
| 40 | |
| 41 | /** |
| 42 | * Defines whether the component is disabled. |
| 43 | * A disabled component can't be pressed or |
| 44 | * focused, and it is not in the tab chain. |
| 45 | * |
| 46 | * @default false |
| 47 | * @public |
| 48 | * @since 1.19.0 |
| 49 | */ |
| 50 | @property({ type: Boolean }) |
| 51 | disabled = false; |
| 52 | |
| 53 | /** |
| 54 | * Defines the tooltip of the component. |
| 55 | * |
| 56 | * A tooltip attribute should be provided, in order to represent meaning/function, |
| 57 | * when the component is collapsed ("icon only" design is visualized) or the item text is truncated. |
| 58 | * |
| 59 | * @default undefined |
| 60 | * @public |
| 61 | * @since 2.0.0 |
| 62 | */ |
| 63 | @property() |
| 64 | tooltip?: string; |
| 65 | |
| 66 | /** |
| 67 | * Defines the accessible ARIA name of the component. |
| 68 | * |
| 69 | * @default undefined |
| 70 | * @public |
| 71 | * @since 2.22.0 |
| 72 | */ |
| 73 | @property() |
| 74 | accessibleName?: string; |
| 75 | |
| 76 | @property({ noAttribute: true }) |
| 77 | forcedTabIndex = "-1"; |
| 78 | |
| 79 | @property({ type: Boolean }) |
| 80 | sideNavCollapsed = false; |
| 81 | |
| 82 | @property({ type: Boolean }) |
| 83 | inPopover = false; |
| 84 |
nothing calls this directly
no test coverage detected