Results 1 to 4 of 4

Thread: set datepickerfield minimum and maximum date

  1. #1
    Sencha User
    Join Date
    Nov 2012
    Location
    Saudi Arabia
    Posts
    3
    Vote Rating
    0
      0  

    Default set datepickerfield minimum and maximum date

    Hello,
    I am using Sencha Touch 2.0 on a new app that has a daepickerfield.. this field needs to only allow the user to chose a date from a specific range of dates... but I could only set the yearFrom and yearTo.

    I was looking into the documentation for a way to set the minimum and maximum values to a datepickerfield but couldn't find a single way.

    could you please help me to get this issue fixed?

  2. #2
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,050
    Answers
    3976
    Vote Rating
    1381
      0  

    Default

    You would need to extend the datepicker and override the onDoneButtonTap to support validations.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Nov 2012
    Location
    Saudi Arabia
    Posts
    3
    Vote Rating
    0
      0  

    Default

    Thanks Mitchell,
    My concern here is not to confuse the user. I need to show the exact "valid" period to pick from.
    Isn't there any other way?

  4. #4
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,050
    Answers
    3976
    Vote Rating
    1381
      0  

    Default

    The slots are just dataviews so you can change the data in the stores
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •