Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Timeline date chooser year up to 2020 only

    Hi,
    Can be observed in showcase (12.1p) - can't select year > 2020. There is no such an issue in other date fields with date choose.
    Click image for larger version  Name:	timelineDateChooser.png Views:	0 Size:	58.4 KB ID:	264182
    Is it intentional? Can I change it?
    Thanks,
    MichalG

    #2
    Ok, so I see that it could be done this way:
    Code:
            DateChooser dateChooserProperties = new DateChooser();
            dateChooserProperties.setStartYear(DateUtil.create().getYear()+1900 + 1890);
            dateChooserProperties.setEndYear(DateUtil.create().getYear()+1900 + 1905);
            DateChooser.setDefaultProperties(dateChooserProperties);
    to be consistent with DateItem chooser.
    HTH
    MichalG

    Comment


      #3
      We've tweaked DateChooser.start/endYear to use the same dynamic range as start/endDate on DateItems - a 15-year range, spanning 10 years before and 5 years after today. If you want to change that range globally, your example code is the correct way for DateChooser. You'd need to similarly add logic for DateItem.start/endDate, to affect DateChoosers popped from a DateItem.

      Please retest with a build of 12.1+, dated November 29 or later.
      Last edited by Isomorphic; 28 Nov 2020, 07:47.

      Comment

      Working...
      X