* @class * * ### Overview * * Allows the user to set a binary value, such as true/false or yes/no for an item. * * The `ui5-checkbox` component consists of a box and a label that describes its purpose. * If it's checked, an indicator is displayed inside the box. * To check/uncheck the `ui5-c
| 88 | * @csspart icon - Used to style the icon of the `ui5-checkbox` |
| 89 | */ |
| 90 | @customElement({ |
| 91 | tag: "ui5-checkbox", |
| 92 | languageAware: true, |
| 93 | formAssociated: true, |
| 94 | renderer: jsxRenderer, |
| 95 | template: CheckBoxTemplate, |
| 96 | styles: checkboxCss, |
| 97 | }) |
| 98 | /** |
| 99 | * Fired when the component checked state changes. |
| 100 | * @public |
| 101 | */ |
| 102 | @event("change", { |
| 103 | bubbles: true, |
| 104 | cancelable: true, |
| 105 | }) |
| 106 | /** |
| 107 | * Fired to make Angular two way data binding work properly. |
| 108 | * @private |
| 109 | */ |
| 110 | @event("value-changed", { |
| 111 | bubbles: true, |
| 112 | cancelable: true, |
| 113 | }) |
| 114 | class CheckBox extends UI5Element implements IFormInputElement { |
| 115 | eventDetails!: { |
| 116 | "change": void, |
| 117 | "value-changed": void, |
| 118 | }; |
| 119 | |
| 120 | /** |
| 121 | * Receives id(or many ids) of the elements that label the component |
| 122 | * @default undefined |
| 123 | * @public |
| 124 | * @since 1.1.0 |
| 125 | */ |
| 126 | @property() |
| 127 | accessibleNameRef?: string; |
| 128 | |
| 129 | /** |
| 130 | * Defines the accessible ARIA name of the component. |
| 131 | * @public |
| 132 | * @default undefined |
| 133 | * @since 1.1.0 |
| 134 | */ |
| 135 | @property() |
| 136 | accessibleName?: string; |
| 137 | |
| 138 | /** |
| 139 | * Defines whether the component is disabled. |
| 140 | * |
| 141 | * **Note:** A disabled component is completely noninteractive. |
| 142 | * @default false |
| 143 | * @public |
| 144 | */ |
| 145 | @property({ type: Boolean }) |
| 146 | disabled = false; |
| 147 |
nothing calls this directly
no test coverage detected