marosseleng / compose-material3-datetime-pickers

Material3 themed Jetpack Compose date & time pickers.
Apache License 2.0
155 stars 8 forks source link

Add allowed ranges to datepicker #18

Open marosseleng opened 2 years ago

kevinldavis commented 2 years ago

I think this change caused the following error (jquery.ui 1.13.2) datepicker: Screenshot 2022-10-19 102955

code: $(function () { $("#txtDateOfBirth").datepicker({ yearRange: { 1901: 2023 }, dateFormat: 'mm/dd/yyyy', changeMonth: true, changeYear: true }); });

marosseleng commented 2 years ago

Hi @kevinldavis That problem is not related to this issue/repository as this is not a javascript library.

kevinldavis commented 2 years ago

Thank you

Get Outlook for iOShttps://aka.ms/o0ukef


From: Maroš Šeleng @.> Sent: Wednesday, October 19, 2022 11:46:16 AM To: marosseleng/compose-material3-datetime-pickers @.> Cc: Davis, Kevin L @.>; Mention @.> Subject: Re: [marosseleng/compose-material3-datetime-pickers] Add allowed ranges to datepicker (Issue #18)

CAUTION: This email originated from outside of the City of Fort Worth email system. Do not click any links or open attachments unless you recognize the sender and know the content is safe.

Hi @kevinldavishttps://urldefense.com/v3/__https://github.com/kevinldavis__;!!FBD41DuKpIh0IME!M-jqYRJnpUi9v78WTyPWM7TdaUDljhiLFLZnGT76HYFS7jqbB9jwxQHyxyJyyMU36Jr-OMlEZIPHD6dsp8MPmKCEgUq--R9UN6x1LAw$ That problem is not related to this issue/repository as this is not a javascript library.

— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https://github.com/marosseleng/compose-material3-datetime-pickers/issues/18*issuecomment-1284297998__;Iw!!FBD41DuKpIh0IME!M-jqYRJnpUi9v78WTyPWM7TdaUDljhiLFLZnGT76HYFS7jqbB9jwxQHyxyJyyMU36Jr-OMlEZIPHD6dsp8MPmKCEgUq--R9UcV8Jxhc$, or unsubscribehttps://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AZTTYBT45UYDB66UWJBSXKLWEAQVRANCNFSM6AAAAAARI3WDUY__;!!FBD41DuKpIh0IME!M-jqYRJnpUi9v78WTyPWM7TdaUDljhiLFLZnGT76HYFS7jqbB9jwxQHyxyJyyMU36Jr-OMlEZIPHD6dsp8MPmKCEgUq--R9U7iKk97E$. You are receiving this because you were mentioned.Message ID: @.***>

danieldaeschle commented 1 year ago

I could need this feature. Are there any plans to implement it?

marosseleng commented 1 year ago

@danieldaeschle honestly, there aren't any for the near future.

Google created date & time pickers as part of compose-material3, it is currently in beta.

I, personally, haven't seen, nor tried it, thus I am not sure which (planned) features of this library are actually reasonable to implement, when now there is "official" library.

I'm sorry, I can't give you a clear answer on this, but it would need a bit of research on this topic from my side.

danieldaeschle commented 1 year ago

Ah, didn't know that there is a datepicker yet. Must be new :)

marosseleng commented 1 year ago

Yeah, it was released in alpha few weeks ago, is currently in beta (https://developer.android.com/jetpack/androidx/releases/compose-material3#1.1.0-beta02)

danishrafiqe commented 1 year ago

@marosseleng @danieldaeschle will u please tell me how to disable Previous dates From Now in This Date Picker

marosseleng commented 1 year ago

@drmughal03244 As you can see, this issue is still open, thus it is currently not possible to disable previous dates in the datepicker.