Uploaded image for project: 'PUBLIC - Liferay Alloy UI'
  1. PUBLIC - Liferay Alloy UI
  2. AUI-169

Alter minDate after calendar's creation

    Details

      Description

      When testing alloy-calendar, I try to set minDate after render call. An example:

      var calendar = new A.Calendar({
      trigger: '#calDateOut',
      dateFormat: '%d/%m/%Y',
      setValue: true, minDate: '25/06/2010',
      firstDayOfWeek: 0, on: { select: function(event) {} }
      }) .render();

      calendar.set('minDate', '20/07/2010');
      ...

      How to reproduce:

      • When calendar opens it begins with 06-month and 25-day (as first minDate).
      • If next month (07) is selected, minDate now is 20 (second minDate).
      • If you select previous month, now all days are disabled.

        Attachments

          Activity

            People

            Assignee:
            jonathan.mak Jonathan Mak (Inactive)
            Reporter:
            gescript Gabriel Osorio (Inactive)
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              9 years, 34 weeks, 6 days ago

                Packages

                Version Package
                1.0.0
                1.0.1
                1.0.2