feat(tabview) add API to rename tab.

https://github.com/lvgl/lvgl/issues/3407#issue-1265916615
This commit is contained in:
pete-pjb
2022-06-13 12:56:37 +01:00
parent 9a48de0f8b
commit 2c9695afb4
3 changed files with 20 additions and 0 deletions

View File

@@ -28,6 +28,10 @@ There are no special parts on the Tab view but the `lv_obj` and `lv_btnnmatrix`
New tabs can be added with `lv_tabview_add_tab(tabview, "Tab name")`. This will return a pointer to an [lv_obj](/widgets/obj) object where the tab's content can be created.
### Rename tabs
A tab can be renamed with `lv_tabview_rename_tab( tabview, tab_id, "New Name" )`.
### Change tab
To select a new tab you can: