mirror of
https://github.com/slint-ui/slint.git
synced 2025-11-03 05:12:55 +00:00
material: current-item -> current-index (https://github.com/slint-ui/material-components/issues/145)
Imported from 073c3302d6
This commit is contained in:
parent
a2edac554e
commit
ae45308c58
16 changed files with 55 additions and 55 deletions
|
|
@ -31,13 +31,13 @@ A `NavigationBar` is a bottom navigation component that displays a row of naviga
|
|||
|
||||
## Properties
|
||||
|
||||
### current-item
|
||||
<SlintProperty propName="current-item" typeName="int" propertyVisibility="in-out">
|
||||
### current-index
|
||||
<SlintProperty propName="current-index" typeName="int" propertyVisibility="in-out">
|
||||
The index of the currently selected navigation item.
|
||||
|
||||
```slint "current-item: 0;"
|
||||
```slint "current-index: 0;"
|
||||
NavigationBar {
|
||||
current-item: 0;
|
||||
current-index: 0;
|
||||
}
|
||||
```
|
||||
</SlintProperty>
|
||||
|
|
|
|||
|
|
@ -37,8 +37,8 @@ An optional avatar image displayed in the search bar.
|
|||
The background color for the avatar.
|
||||
</SlintProperty>
|
||||
|
||||
### current-item
|
||||
<SlintProperty propName="current-item" typeName="int" propertyVisibility="in-out">
|
||||
### current-index
|
||||
<SlintProperty propName="current-index" typeName="int" propertyVisibility="in-out">
|
||||
The index of the currently selected search result item.
|
||||
</SlintProperty>
|
||||
|
||||
|
|
|
|||
|
|
@ -30,8 +30,8 @@ A `TabBar` displays a row of tabs for navigation between different views or cont
|
|||
|
||||
## Properties
|
||||
|
||||
### current-item
|
||||
<SlintProperty propName="current-item" typeName="int" propertyVisibility="in-out">
|
||||
### current-index
|
||||
<SlintProperty propName="current-index" typeName="int" propertyVisibility="in-out">
|
||||
The index of the currently selected tab.
|
||||
</SlintProperty>
|
||||
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ export component Example inherits Window {
|
|||
{ icon: @image-url("../icons/share.svg"), text: "Share" },
|
||||
{ icon: @image-url("../icons/music_note.svg"), text: "Music" }
|
||||
];
|
||||
current-item: 0;
|
||||
current-index: 0;
|
||||
}
|
||||
}
|
||||
```
|
||||
|
|
@ -29,8 +29,8 @@ A `SegmentedButton` displays a group of related options as a single control, whe
|
|||
|
||||
## Properties
|
||||
|
||||
### current-item
|
||||
<SlintProperty propName="current-item" typeName="int" propertyVisibility="in-out">
|
||||
### current-index
|
||||
<SlintProperty propName="current-index" typeName="int" propertyVisibility="in-out">
|
||||
The index of the currently selected item.
|
||||
</SlintProperty>
|
||||
|
||||
|
|
|
|||
|
|
@ -40,8 +40,8 @@ A `NavigationDrawer` is a side panel that contains navigation items organized in
|
|||
The index of the currently selected navigation group.
|
||||
</SlintProperty>
|
||||
|
||||
### current-item
|
||||
<SlintProperty propName="current-item" typeName="int" propertyVisibility="in-out">
|
||||
### current-index
|
||||
<SlintProperty propName="current-index" typeName="int" propertyVisibility="in-out">
|
||||
The index of the currently selected navigation item within the current group.
|
||||
</SlintProperty>
|
||||
|
||||
|
|
|
|||
|
|
@ -35,8 +35,8 @@ A `NavigationRail` is a vertical navigation component that displays navigation i
|
|||
The alignment of the navigation items within the rail.
|
||||
</SlintProperty>
|
||||
|
||||
### current-item
|
||||
<SlintProperty propName="current-item" typeName="int" propertyVisibility="in-out">
|
||||
### current-index
|
||||
<SlintProperty propName="current-index" typeName="int" propertyVisibility="in-out">
|
||||
The index of the currently selected navigation item.
|
||||
</SlintProperty>
|
||||
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ The label text displayed above the drop down menu.
|
|||
</SlintProperty>
|
||||
|
||||
### current_index
|
||||
<SlintProperty propName="current-item" typeName="int" propertyVisibility="in-out">
|
||||
<SlintProperty propName="current-index" typeName="int" propertyVisibility="in-out">
|
||||
The index of the currently selected menu item.
|
||||
</SlintProperty>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue