From c970f2f17c2084d7262bc762e2a0c038bf526dd5 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Tue, 1 Jul 2025 11:05:29 +0200 Subject: [PATCH] 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 https://github.com/slint-ui/material-components/commit/2acb1bd4ea8d87a4749dc86c2b9407235a6c07f5 --- .../src/content/docs/components/time_picker.mdx | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/ui-libraries/material/docs/src/content/docs/components/time_picker.mdx b/ui-libraries/material/docs/src/content/docs/components/time_picker.mdx index 82c1dfa56..30b7cfb89 100644 --- a/ui-libraries/material/docs/src/content/docs/components/time_picker.mdx +++ b/ui-libraries/material/docs/src/content/docs/components/time_picker.mdx @@ -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 - -The selected hour (0-23). - - -### minute - -The selected minute (0-59). +### time + +Set the initial displayed time. ### read-only