pub struct SingleSelectionBuilder { /* private fields */ }Expand description
A builder-pattern type to construct SingleSelection objects.
Implementations§
Source§impl SingleSelectionBuilder
impl SingleSelectionBuilder
Sourcepub fn autoselect(self, autoselect: bool) -> Self
pub fn autoselect(self, autoselect: bool) -> Self
If the selection will always select an item.
Sourcepub fn can_unselect(self, can_unselect: bool) -> Self
pub fn can_unselect(self, can_unselect: bool) -> Self
If unselecting the selected item is allowed.
Sourcepub fn build(self) -> SingleSelection
pub fn build(self) -> SingleSelection
Build the SingleSelection.