From a5fe7959aa916e3c1a3498d9b59fbb54b199e49e Mon Sep 17 00:00:00 2001 From: mohammed Elsdody <31186483+mohamedma872@users.noreply.github.com> Date: Wed, 11 Sep 2024 15:24:33 +0300 Subject: [PATCH] Update README.md Signed-off-by: mohammed Elsdody <31186483+mohamedma872@users.noreply.github.com> --- README.md | 35 ++++++++++++++++++----------------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 5f85f25..a77afb9 100644 --- a/README.md +++ b/README.md @@ -149,23 +149,24 @@ fun ShowHijriDatePicker() { HijriDatePickerButton() OR - showHijriDatePicker( - initialYear = 1446, // Pass the initial year, e.g., current Hijri year - initialMonth = 1, // Initial month - initialDay = 10, // Initial day - onDateSelected = { year, month, day -> - // Handle date selected (year, month, day) - println("Selected Date: $day-${getHijriMonthName(month)}-$year") - }, - onConfirm = { - // Handle confirm click - println("Date Picker Confirmed") - }, - onDismissRequest = { - // Handle dismiss - println("Date Picker Dismissed") - } - ) + showHijriDatePicker( + initialYear = 1446, // Pass the initial year, e.g., current Hijri year + initialMonth = 1, // Initial month + initialDay = 10, // Initial day + onDateSelected = { year, month, day -> + // Handle date selected (year, month, day) + println("Selected Date: $day-${getHijriMonthName(month)}-$year") + }, + onConfirm = { year, month, day -> + // Handle the final confirmed date + println("Confirmed Date: $day-${getHijriMonthName(month)}-$year") + }, + onDismissRequest = { + // Handle the dismiss action + println("Date Picker Dismissed") + }, + calendarType = "umalqura" // Use "umalqura", "civil", or "islamic" + ) } ``` ```kotlin