[−][src]Function lvgl::widgets::dropdown::add_option
pub fn add_option(
ddlist: *mut lv_obj_t,
option: &Strn<'_>,
pos: u32
) -> MynewtResult<()>
Add an options to a drop down list from a string. Only works for dynamic options.
ddlist
: pointer to drop down list objectoption
: a string without '\n'. E.g. "Four"pos
: the insert position, indexed from 0, LV_DROPDOWN_POS_LAST = end of string