Description
I created a drop down list, and I add some optios to it. But I don’t know how to delete default options,such as option 1,option 2 and option 3.
What MCU/Processor/Board and compiler are you using?
NXP RT1052
What LVGL version are you using?
V7.11.0
What do you want to achieve?
What have you tried so far?
Code to reproduce
Add a code snippet which can run in the simulator. It should contain only the relevant code that compiles without errors when separated from your main code base.
The code block(s) should be formatted like:
/*You code here*/
lv_obj_t * ddlist = lv_dropdown_create(lv_scr_act(), NULL);
lv_obj_set_size(ddlist, 200, 60);
lv_dropdown_add_option(ddlist, “OUT OF THIS WORLD”, LV_DROPDOWN_POS_LAST);
lv_dropdown_set_max_height(ddlist, 300);
lv_obj_align(ddlist, NULL, LV_ALIGN_IN_TOP_MID, 0, 20);
lv_obj_set_event_cb(ddlist, event_handler);
Screenshot and/or video
If possible, add screenshots and/or videos about the current state.