aminography / PrimeDatePicker

PrimeDatePicker is a tool that provides picking a single day, multiple days, and a range of days.
Apache License 2.0
471 stars 52 forks source link

disable future days #58

Closed iceberg1369 closed 2 years ago

iceberg1369 commented 2 years ago

Hello,

list of disabled fays could be passed to calendar by disabledDaysList property. but is it possible to disable from specific day onward? eg from today to end

iceberg1369 commented 2 years ago

for everyone else come across

` var calendarType = CalendarType.PERSIAN

    val maxCalendar = CalendarFactory.newInstance(calendarType)

    val minCalendar = CalendarFactory.newInstance(calendarType)

    maxCalendar[Calendar.MONTH] += 0

    minCalendar[Calendar.MONTH] -= 5

    primeCalendarView?.maxDateCalendar = maxCalendar

    primeCalendarView?.minDateCalendar = minCalendar

`

aminography commented 2 years ago

Hi! You did right. It’s just needed to set the maxDateCalendar for today. BR.