pub fn selected_index(tree: &FieldTree, id: FieldId) -> Option<usize>
Get the index of the first selected option, if any.