You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -287,7 +287,8 @@ fun show(
287
287
displayView:View? = null,
288
288
offset:String = "0-0-0",
289
289
upperLimit:String = today(),
290
-
todo: () ->Unit = {}
290
+
weekSelection:Boolean = false,
291
+
dateSelectListener:OnDateSelectListener
291
292
)
292
293
```
293
294
@@ -297,7 +298,8 @@ fun show(
297
298
-**`displayView`**: A `TextView` or `Button` whose text will be updated with the selected date. If not provided, no view will be updated.
298
299
-**`offset`**: A string that defines the offset for date selection. The format is `"dd-mm-yyyy"`. For example, `"0-0-5"` will show dates from 5 years ago.
299
300
-**`upperLimit`**: The latest date a user can select, in the format `dd-MM-yyyy`. By default, this is today's date.
300
-
-**`todo`**: An optional callback that will be called after a date is selected. This allows you to perform actions after the date is picked.
301
+
-**`weekSelection`**: If `true`, the date picker will show in week selection mode.
302
+
-**`dateSelectListener`**: A `OnDateSelectListener` that will be executed when a date is selected.
0 commit comments