mirror of
https://github.com/adoyle0/thaw.git
synced 2025-01-24 06:49:21 -05:00
23 lines
706 B
Markdown
23 lines
706 B
Markdown
# Time Picker
|
|
|
|
```rust demo
|
|
use chrono::prelude::*;
|
|
|
|
let value = RwSignal::new(Local::now().time());
|
|
let option_value = RwSignal::new(Local::now().time());
|
|
|
|
view! {
|
|
<Space vertical=true>
|
|
<TimePicker value />
|
|
<TimePicker value=option_value />
|
|
</Space>
|
|
}
|
|
```
|
|
|
|
## TimePicker Props
|
|
|
|
| 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. |
|