diff --git a/packages/main/src/SelectMenuOption.ts b/packages/main/src/SelectMenuOption.ts index 6f6578160405..5e2db4c41291 100644 --- a/packages/main/src/SelectMenuOption.ts +++ b/packages/main/src/SelectMenuOption.ts @@ -28,7 +28,7 @@ import type { AccessibilityAttributes } from "./ListItem.js"; * @constructor * @author SAP SE * @alias sap.ui.webc.main.SelectMenuOption - * @extends sap.ui.webc.base.UI5Element + * @extends sap.ui.webc.main.CustomListItem * @implements sap.ui.webc.main.ISelectMenuOption * @tagname ui5-select-menu-option * @public @@ -53,6 +53,18 @@ class SelectMenuOption extends CustomListItem implements IOption { @property() displayText!: string; + /** + * Defines whether the component is in disabled state. + *

+ * Note: A disabled component is hidden. + * @type {boolean} + * @defaultvalue false + * @name sap.ui.webc.main.SelectMenuOption.prototype.disabled + * @public + */ + @property({ type: Boolean }) + disabled!: boolean; + /** * Defines the value of the ui5-select inside an HTML Form element when this component is selected. * For more information on HTML Form support, see the name property of ui5-select.