pub fn DatePicker(_: DatePickerProps) -> ElementExpand description
A date, as whole days since 1970-01-01.
The widget says what the value is and what range is allowed. How it is picked, a calendar grid, a wheel or a flyout, belongs to the design system, and there is no property that lets the Host ask for one of them.
Time zone, locale, the first day of the week and the display format stay in the Renderer, which is the only side that can read the platform’s settings. A format string crossing here would turn “follows the platform” into a claim the Renderer cannot keep.
§Props
For details, see the props struct definition.
weight:Option<f32>width:Option<f32>height:Option<f32>padding:Option<f32>padding_role:Option<SpaceRole>background:Option<Paint>shape_role:Option<ShapeRole>corner_radius:Option<f32>border_width:Option<f32>border_color:Option<Paint>elevation:Option<f32>fill_max_width:boolfill_max_height:boolvalue:i64Days since 1970-01-01.
min:Option<i64>max:Option<i64>enabled:boolon_change:EventHandler<i64>