mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-25 09:28:04 +00:00
material: TimePicker: Replaced the minute/hour properties with a time property
That way the provided example compiles and reflects the API that's exported.
Imported from 2acb1bd4ea
This commit is contained in:
parent
74123cbfcd
commit
c970f2f17c
1 changed files with 7 additions and 10 deletions
|
|
@ -15,8 +15,10 @@ export component Example inherits Window {
|
|||
height: 300px;
|
||||
background: transparent;
|
||||
TimePicker {
|
||||
hour: 14;
|
||||
minute: 30;
|
||||
time: {
|
||||
hour: 14,
|
||||
minute: 30,
|
||||
};
|
||||
}
|
||||
}
|
||||
```
|
||||
|
|
@ -26,14 +28,9 @@ A `TimePicker` allows users to select a time using a clock interface or text inp
|
|||
|
||||
## Properties
|
||||
|
||||
### hour
|
||||
<SlintProperty propName="hour" typeName="int" propertyVisibility="in-out">
|
||||
The selected hour (0-23).
|
||||
</SlintProperty>
|
||||
|
||||
### minute
|
||||
<SlintProperty propName="minute" typeName="int" propertyVisibility="in-out">
|
||||
The selected minute (0-59).
|
||||
### time
|
||||
<SlintProperty propName="time" typeName="struct" structName="Time" >
|
||||
Set the initial displayed time.
|
||||
</SlintProperty>
|
||||
|
||||
### read-only
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue