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:
Simon Hausmann 2025-07-01 11:05:29 +02:00 committed by Olivier Goffart
parent 74123cbfcd
commit c970f2f17c

View file

@ -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