* @class * * ### Overview * * The `ui5-segmented-button` shows a group of items. When the user clicks or taps * one of the items, it stays in a pressed state. It automatically resizes the items * to fit proportionally within the component. When no width is set, the component uses the available
| 64 | * @public |
| 65 | */ |
| 66 | @customElement({ |
| 67 | tag: "ui5-segmented-button", |
| 68 | languageAware: true, |
| 69 | renderer: jsxRenderer, |
| 70 | template: SegmentedButtonTemplate, |
| 71 | styles: SegmentedButtonCss, |
| 72 | }) |
| 73 | /** |
| 74 | * Fired when the selected item changes. |
| 75 | * @param {Array<ISegmentedButtonItem>} selectedItems an array of selected items. Since: 1.14.0 |
| 76 | * @public |
| 77 | */ |
| 78 | @event("selection-change", { |
| 79 | bubbles: true, |
| 80 | }) |
| 81 | |
| 82 | class SegmentedButton extends UI5Element { |
| 83 | eventDetails!: { |
| 84 | "selection-change": SegmentedButtonSelectionChangeEventDetail, |
| 85 | } |
| 86 | /** |
| 87 | * Defines the accessible ARIA name of the component. |
| 88 | * @default undefined |
| 89 | * @public |
| 90 | * @since 1.0.3 |
| 91 | */ |
| 92 | @property() |
| 93 | accessibleName?: string; |
| 94 | |
| 95 | /** |
| 96 | * Defines the IDs of the HTML Elements that label the component. |
| 97 | * @default undefined |
| 98 | * @public |
| 99 | * @since 2.15.0 |
| 100 | */ |
| 101 | @property() |
| 102 | accessibleNameRef?: string; |
| 103 | |
| 104 | /** |
| 105 | * Defines the accessible description of the component. |
| 106 | * @default undefined |
| 107 | * @public |
| 108 | * @since 2.15.0 |
| 109 | */ |
| 110 | @property() |
| 111 | accessibleDescription?: string; |
| 112 | |
| 113 | /** |
| 114 | * Defines the IDs of the HTML Elements that describe the component. |
| 115 | * @default undefined |
| 116 | * @public |
| 117 | * @since 2.15.0 |
| 118 | */ |
| 119 | @property() |
| 120 | accessibleDescriptionRef?: string; |
| 121 | |
| 122 | /** |
| 123 | * Defines the component selection mode. |
nothing calls this directly
no test coverage detected