Imported from 4545d04349
This commit is contained in:
Nigel Breslaw 2025-09-05 10:47:57 +03:00 committed by Olivier Goffart
parent 6f8f28ee0a
commit 482c3237c2
3 changed files with 10 additions and 10 deletions

View file

@ -15,7 +15,7 @@ export component Example inherits Window {
height: 100px;
background: transparent;
SegmentedButton {
model: [
items: [
{ icon: @image-url("../icons/share.svg"), text: "Share" },
{ icon: @image-url("../icons/music_note.svg"), text: "Music" }
];
@ -34,8 +34,8 @@ A `SegmentedButton` displays a group of related options as a single control, whe
The index of the currently selected item.
</SlintProperty>
### model
<SlintProperty propName="model" typeName="[struct]" structName="SegmentedItem">
### items
<SlintProperty propName="items" typeName="[struct]" structName="SegmentedItem">
An array of segmented items, each containing an icon and text.
</SlintProperty>