pub struct SelectBuilder<'a> { /* private fields */ }Expand description
A button that opens a list of options. Start with select.
Implementations§
Source§impl<'a> SelectBuilder<'a>
impl<'a> SelectBuilder<'a>
Sourcepub fn bind(self, i: &'a mut usize) -> Self
pub fn bind(self, i: &'a mut usize) -> Self
Read the choice from i and write a pick back to it.
Sourcepub fn searchable(self, on: bool) -> Self
pub fn searchable(self, on: bool) -> Self
A search line on top of the list (default: more options than the list shows).
Sourcepub fn within(self, container: Rect) -> Self
pub fn within(self, container: Rect) -> Self
Keep the open list inside container (a modal card, a panel).
Sourcepub fn style(self, s: SelectStyle) -> Self
pub fn style(self, s: SelectStyle) -> Self
The list’s look (e.g. SelectStyle::from_sheet(&sheet, "div.select-list")).
Auto Trait Implementations§
impl<'a> !UnwindSafe for SelectBuilder<'a>
impl<'a> Forget for SelectBuilder<'a>
impl<'a> Freeze for SelectBuilder<'a>
impl<'a> Move for SelectBuilder<'a>
impl<'a> RefUnwindSafe for SelectBuilder<'a>
impl<'a> Send for SelectBuilder<'a>
impl<'a> Sync for SelectBuilder<'a>
impl<'a> Unpin for SelectBuilder<'a>
impl<'a> UnsafeUnpin for SelectBuilder<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more