pub struct EuvTimePickerProps {
pub value: Signal<String>,
pub placeholder: &'static str,
pub label: &'static str,
pub min_hour: u32,
pub max_hour: u32,
pub minute_step: u32,
pub on_change: Option<Rc<dyn Fn(&'static str)>>,
}Expand description
Props for the euv_time_picker component.
The selected time lives in a caller-owned Signal formatted as HH:MM,
so the picker takes part in two-way binding with the rest of the page. The
open state of the panel is owned by the component itself, so the caller
never has to wire it up.
Fields§
§value: Signal<String>The selected time, formatted “HH:MM”.
An empty string means that nothing is selected yet.
placeholder: &'static strThe text shown when nothing is selected.
label: &'static strThe group label above the control.
An empty string renders the picker without a label.
min_hour: u32The first hour the picker offers.
The bound is clamped into the day, so a value above 23 offers the
last hour of the day.
max_hour: u32The last hour the picker offers (inclusive).
The bound is clamped into the day, so a value above 23 offers the
last hour of the day.
minute_step: u32The minute step the picker offers.
The minutes run from 0 to 59 in steps of this size; a step of zero
is treated as a step of one minute.
on_change: Option<Rc<dyn Fn(&'static str)>>The callback fired when a time is chosen.