Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(ui5-segmented-button-item): add notes to inherited properties #8527

Merged
merged 1 commit into from
Mar 26, 2024
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