* @class * * ### Overview * * `ui5-split-button` enables users to trigger actions. It is constructed of two separate actions - * default action and arrow action that can be activated by clicking or tapping, or by * pressing certain keyboard keys - `Space` or `Enter` for default action, * and
| 90 | * @since 1.1.0 |
| 91 | */ |
| 92 | @customElement({ |
| 93 | tag: "ui5-split-button", |
| 94 | renderer: jsxRenderer, |
| 95 | styles: SplitButtonCss, |
| 96 | template: SplitButtonTemplate, |
| 97 | }) |
| 98 | /** |
| 99 | * Fired when the user clicks on the default action. |
| 100 | * @public |
| 101 | */ |
| 102 | @event("click", { |
| 103 | bubbles: true, |
| 104 | }) |
| 105 | |
| 106 | /** |
| 107 | * Fired when the user clicks on the arrow action. |
| 108 | * @public |
| 109 | */ |
| 110 | @event("arrow-click", { |
| 111 | bubbles: true, |
| 112 | }) |
| 113 | class SplitButton extends UI5Element { |
| 114 | eventDetails!: { |
| 115 | click: void; |
| 116 | "arrow-click": void; |
| 117 | } |
| 118 | /** |
| 119 | * Defines the icon to be displayed as graphical element within the component. |
| 120 | * The SAP-icons font provides numerous options. |
| 121 | * |
| 122 | * Example: |
| 123 | * |
| 124 | * See all available icons in the [Icon Explorer](https://sdk.openui5.org/test-resources/sap/m/demokit/iconExplorer/webapp/index.html). |
| 125 | * @default undefined |
| 126 | * @public |
| 127 | */ |
| 128 | @property() |
| 129 | icon?: string; |
| 130 | |
| 131 | /** |
| 132 | * Defines whether the arrow button should have the active state styles or not. |
| 133 | * @default false |
| 134 | * @public |
| 135 | * @since 1.21.0 |
| 136 | */ |
| 137 | @property({ type: Boolean }) |
| 138 | activeArrowButton = false; |
| 139 | |
| 140 | /** |
| 141 | * Defines the component design. |
| 142 | * @default "Default" |
| 143 | * @public |
| 144 | */ |
| 145 | @property() |
| 146 | design: `${ButtonDesign}` = "Default"; |
| 147 | |
| 148 | /** |
| 149 | * Defines whether the component is disabled. |
nothing calls this directly
no test coverage detected