Skip to main content

set_selection

Function set_selection 

Source
pub fn set_selection(tree: &mut FieldTree, id: FieldId, value: &str) -> bool
Expand description

Set the selection for a single-select choice field. For non-editable combos, value must match an option. Returns false if read-only or invalid.