Visitar URL original
docs(ui5-segmented-button-item): add notes to inherited properties by tsanislavgatev · Pull Request #8527 · UI5/webcomponents · GitHub
Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions packages/main/src/SegmentedButtonItem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ import SegmentedButtonItemTemplate from "./generated/templates/SegmentedButtonIt

import ToggleButton from "./ToggleButton.js";
import ButtonDesign from "./types/ButtonDesign.js";
import ButtonType from "./types/ButtonType.js";
import ButtonAccessibleRole from "./types/ButtonAccessibleRole.js";
import { AccessibilityAttributes } from "./Button.js";
import Icon from "./Icon.js";

import { SEGMENTEDBUTTONITEM_ARIA_DESCRIPTION } from "./generated/i18n/i18n-defaults.js";
Expand Down Expand Up @@ -61,6 +64,30 @@ class SegmentedButtonItem extends ToggleButton implements ISegmentedButtonItem {
@property({ type: Boolean })
declare submits: boolean;

/**
* **Note:** The property is inherited and not supported. If set, it won't take any effect.
* @default {}
* @public
*/
@property({ type: Object })
declare accessibilityAttributes: AccessibilityAttributes;

/**
* **Note:** The property is inherited and not supported. If set, it won't take any effect.
* @default "Button"
* @public
*/
@property({ type: ButtonType, defaultValue: ButtonType.Button })
declare type: `${ButtonType}`;

/**
* **Note:** The property is inherited and not supported. If set, it won't take any effect.
* @default "Button"
* @public
*/
@property({ type: ButtonAccessibleRole, defaultValue: ButtonAccessibleRole.Button })
declare accessibleRole: `${ButtonAccessibleRole}`;

/**
* Defines the index of the item inside of the SegmentedButton.
* @default 0
Expand Down