pub struct DatePicker { /* private fields */ }Expand description
DatePicker component styled like shadcn/ui
§Example
use armas_basic::{DatePicker, Date};
let mut date_picker = DatePicker::new("birthday");
let mut selected_date = None;
date_picker.show(ctx, ui, &mut selected_date);Implementations§
Source§impl DatePicker
impl DatePicker
Sourcepub fn placeholder(self, text: impl Into<String>) -> Self
pub fn placeholder(self, text: impl Into<String>) -> Self
Set the placeholder text
Show Today/Clear footer buttons
Trait Implementations§
Source§impl Clone for DatePicker
impl Clone for DatePicker
Source§fn clone(&self) -> DatePicker
fn clone(&self) -> DatePicker
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DatePicker
impl RefUnwindSafe for DatePicker
impl Send for DatePicker
impl Sync for DatePicker
impl Unpin for DatePicker
impl UnsafeUnpin for DatePicker
impl UnwindSafe for DatePicker
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