mirror of
https://github.com/slint-ui/slint.git
synced 2025-11-03 21:24:17 +00:00
material: SegmentedButton: model -> items (https://github.com/slint-ui/material-components/issues/152)
Imported from 4545d04349
This commit is contained in:
parent
6f8f28ee0a
commit
482c3237c2
3 changed files with 10 additions and 10 deletions
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue