Skip to content

Commit 8ae70f0

Browse files
docs(ui5-segmented-button-item): add notes to inherited properties (#8527)
Marking properties in documentation that have no effect over the control.
1 parent 5b410d6 commit 8ae70f0

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

packages/main/src/SegmentedButtonItem.ts

+27
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ import SegmentedButtonItemTemplate from "./generated/templates/SegmentedButtonIt
77

88
import ToggleButton from "./ToggleButton.js";
99
import ButtonDesign from "./types/ButtonDesign.js";
10+
import ButtonType from "./types/ButtonType.js";
11+
import ButtonAccessibleRole from "./types/ButtonAccessibleRole.js";
12+
import { AccessibilityAttributes } from "./Button.js";
1013
import Icon from "./Icon.js";
1114

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

67+
/**
68+
* **Note:** The property is inherited and not supported. If set, it won't take any effect.
69+
* @default {}
70+
* @public
71+
*/
72+
@property({ type: Object })
73+
declare accessibilityAttributes: AccessibilityAttributes;
74+
75+
/**
76+
* **Note:** The property is inherited and not supported. If set, it won't take any effect.
77+
* @default "Button"
78+
* @public
79+
*/
80+
@property({ type: ButtonType, defaultValue: ButtonType.Button })
81+
declare type: `${ButtonType}`;
82+
83+
/**
84+
* **Note:** The property is inherited and not supported. If set, it won't take any effect.
85+
* @default "Button"
86+
* @public
87+
*/
88+
@property({ type: ButtonAccessibleRole, defaultValue: ButtonAccessibleRole.Button })
89+
declare accessibleRole: `${ButtonAccessibleRole}`;
90+
6491
/**
6592
* Defines the index of the item inside of the SegmentedButton.
6693
* @default 0

0 commit comments

Comments
 (0)