Announcement

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

    DateItem allow only past

    Hi,

    using a Dateitem and

    setSelectorFormat(DateItemSelectorFormat.MONTH_YEAR);

    I want to only display a specific range of Years,
    e.g. no future years and no future months of current year.

    Is it possible to override a method to filter by myself?

    Thanks

    #2
    setStartDate() and setEndDate() should allow you to control which dates show up in the DateItem UI, prompting users to select from an appropriate range.

    You can also use a validator to control what the user may select / submit.

    Comment

    Working...
    X