Imported from 073c3302d6
This commit is contained in:
Nigel Breslaw 2025-09-04 13:25:40 +03:00 committed by Olivier Goffart
parent a2edac554e
commit ae45308c58
16 changed files with 55 additions and 55 deletions

View file

@ -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>

View file

@ -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>

View file

@ -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>

View file

@ -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>

View file

@ -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>

View file

@ -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>

View file

@ -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>