feat(roller): set roller option with a string (#7143)

Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
This commit is contained in:
Luna
2024-10-28 10:27:38 +01:00
committed by GitHub
parent 868db01136
commit c27760fb10
8 changed files with 96 additions and 0 deletions

View File

@@ -43,6 +43,10 @@ You can select an option manually with
:cpp:expr:`lv_roller_set_selected(roller, id, LV_ANIM_ON)`,
where *id* is the index of an option.
If you don't know the index of an option can also select an option with
:cpp:expr:`lv_roller_set_selected_str(roller, str, LV_ANIM_ON)`,
where *str* is the string equal to one of the options.
Get selected option
-------------------