(props: DatePickerInputValueProps)
| 1140 | /// The editable date value for a single date picker input. |
| 1141 | #[component] |
| 1142 | pub 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] |
nothing calls this directly
no outgoing calls
no test coverage detected