From bff1f22970e573377e89092ba0e29af1fc261415 Mon Sep 17 00:00:00 2001 From: kolliemo <130751986+kolliemo@users.noreply.github.com> Date: Fri, 8 Sep 2023 22:01:50 +0200 Subject: [PATCH] fix(docs): dropdown: fix function name in description of static options (#4535) --- docs/widgets/core/dropdown.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/widgets/core/dropdown.md b/docs/widgets/core/dropdown.md index c14b9331e..7e1e1851d 100644 --- a/docs/widgets/core/dropdown.md +++ b/docs/widgets/core/dropdown.md @@ -43,7 +43,7 @@ Options are passed to the drop-down list as a string with `lv_dropdown_set_optio The `lv_dropdown_add_option(dropdown, "New option", pos)` function inserts a new option to `pos` index. -To save memory the options can set from a static(constant) string too with `lv_dropdown_set_static_options(dropdown, options)`. +To save memory the options can set from a static(constant) string too with `lv_dropdown_set_options_static(dropdown, options)`. In this case the options string should be alive while the drop-down list exists and `lv_dropdown_add_option` can't be used You can select an option manually with `lv_dropdown_set_selected(dropdown, id)`, where `id` is the index of an option.