Skip to content

Commit ba4a356

Browse files
committed
Update README.md
1 parent c7a6d88 commit ba4a356

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,8 @@ fun show(
287287
displayView: View? = null,
288288
offset: String = "0-0-0",
289289
upperLimit: String = today(),
290-
todo: () -> Unit = {}
290+
weekSelection: Boolean = false,
291+
dateSelectListener: OnDateSelectListener
291292
)
292293
```
293294

@@ -297,7 +298,8 @@ fun show(
297298
- **`displayView`**: A `TextView` or `Button` whose text will be updated with the selected date. If not provided, no view will be updated.
298299
- **`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.
299300
- **`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.
301303

302304
#### Example:
303305

0 commit comments

Comments
 (0)