pub struct DropdownScope { /* private fields */ }Expand description
A Dropdown and its builder.
Implementations§
Source§impl DropdownScope
impl DropdownScope
pub fn enabled(self, enabled: bool) -> Self
Sourcepub fn closed(self, closed: bool) -> Self
pub fn closed(self, closed: bool) -> Self
Keeps the control as a closed single-line field that opens a popup menu on click, even on design systems whose default picker presentation is a wheel.
pub fn on_change(self, handler: impl FnMut(usize) + 'static) -> Self
Source§impl DropdownScope
impl DropdownScope
Source§impl DropdownScope
impl DropdownScope
Source§impl DropdownScope
impl DropdownScope
Sourcepub fn on_motion_finished(
self,
handler: impl FnMut(MotionFinished) + 'static,
) -> Self
pub fn on_motion_finished( self, handler: impl FnMut(MotionFinished) + 'static, ) -> Self
Runs once when this node’s size motion comes to rest, with the size it settled
at in dp. The node needs Modifier::motion for its size to move; without it
nothing is reported. A run interrupted by a newer size is not reported, only
the one that settles, and under reduced motion it arrives in the frame the
size changes in.
Trait Implementations§
Source§impl Drop for DropdownScope
impl Drop for DropdownScope
Auto Trait Implementations§
impl !RefUnwindSafe for DropdownScope
impl !Send for DropdownScope
impl !Sync for DropdownScope
impl !UnwindSafe for DropdownScope
impl Forget for DropdownScope
impl Freeze for DropdownScope
impl Move for DropdownScope
impl Unpin for DropdownScope
impl UnsafeUnpin for DropdownScope
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