MCPcopy Create free account
hub / github.com/DioxusLabs/dioxus-components / DatePickerInputValue

Function DatePickerInputValue

primitives/src/date_picker.rs:1142–1159  ·  view source on GitHub ↗
(props: DatePickerInputValueProps)

Source from the content-addressed store, hash-verified

1140/// The editable date value for a single date picker input.
1141#[component]
1142pub fn DatePickerInputValue(props: DatePickerInputValueProps) -> Element {
1143 let mut base_ctx = use_context::<BaseDatePickerContext>();
1144 let mut ctx = use_context::<DatePickerContext>();
1145
1146 rsx! {
1147 DateElement {
1148 selected_date: ctx.selected_date,
1149 on_date_change: move |date| {
1150 ctx.set_date(date);
1151 base_ctx.open.set(false);
1152 },
1153 on_format_day_placeholder: props.on_format_day_placeholder,
1154 on_format_month_placeholder: props.on_format_month_placeholder,
1155 on_format_year_placeholder: props.on_format_year_placeholder,
1156 children: props.children,
1157 }
1158 }
1159}
1160
1161/// The editable date range value for a date range picker input.
1162#[component]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected