thaw/demo_markdown/docs/time_picker/mod.md

24 lines
706 B
Markdown
Raw Normal View History

# Time Picker
```rust demo
2024-02-07 22:38:02 +08:00
use chrono::prelude::*;
2024-07-24 23:52:38 +08:00
let value = RwSignal::new(Local::now().time());
let option_value = RwSignal::new(Local::now().time());
view! {
2024-07-24 23:52:38 +08:00
<Space vertical=true>
<TimePicker value />
<TimePicker value=option_value />
</Space>
}
```
## TimePicker Props
2024-02-09 22:44:22 +08:00
| Name | Type | Default | Description |
| --- | --- | --- | --- |
| class | `OptionalProp<MaybeSignal<String>>` | `Default::default()` | Addtional classes for the time picker element. |
| value | `Model<Option<NaiveTime>>` | `Default::default()` | Set the TimePicker value. |
| attr: | `Vec<(&'static str, Attribute)>` | `Default::default()` | The dom attrs of the input element inside the component. |