Pascaldietz (Talk | contribs) (Created page with "=Description= The ActionMenu provides a list of text entries that can be clicked. The ''triggered()'' signal returns the selected index. The payload property can store a second l...") |
Pascaldietz (Talk | contribs) (→API Properties) |
||
| Line 15: | Line 15: | ||
;''item'' currentItem | ;''item'' currentItem | ||
:Stores the currently pressed Item to reset the pressed state on move. | :Stores the currently pressed Item to reset the pressed state on move. | ||
| - | + | ;''int'' selectedIndex | |
| + | :Stores the index of the currently selected item. Can be set from outside, but make sure it's set after a model is set, because setting a model resets the selectedIndex to -1. | ||
| + | |||
=Private properties= | =Private properties= | ||
;''int'' currentWidth | ;''int'' currentWidth | ||
Contents |
The ActionMenu provides a list of text entries that can be clicked. The triggered() signal returns the selected index. The payload property can store a second list with additional data for the entry list. The ActionMenu will elide text that exceeds its maximum width set via maxWidth. Otherwise the width will always be as small as possible, with minimum minWidth. If the entries height exceeds the windows height, it will enable flicking.
-