Results 1 to 3 of 3

Thread: DatePicker minValue

  1. #1
    Sencha User
    Join Date
    Aug 2011
    Posts
    36
    Vote Rating
    0
      0  

    Default DatePicker minValue

    Is it possible to set the minimum date (and maximum) on the Date Picker? I think this was possible with the ext datefield but don't see it here, http://docs.sencha.com/touch/2-0/#!/...eld.DatePicker. Right now the dates go all the way back to 1980 and I can't select anything past 2012.

  2. #2
    Sencha - Community Support Team mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,023
    Vote Rating
    1335
      0  

    Default

    You can specify the yearFrom config in the picker config:

    Code:
    {
        xtype : 'datepickerfield',
        label : 'date',
        picker : {
            yearFrom : 2000
        }
    }
    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
    Touch Premium Member
    Join Date
    Dec 2010
    Location
    Jakarta, Indonesia
    Posts
    51
    Vote Rating
    0
      0  

    Default

    Quote Originally Posted by mitchellsimoens View Post
    You can specify the yearFrom config in the picker config:

    Code:
    {
        xtype : 'datepickerfield',
        label : 'date',
        picker : {
            yearFrom : 2000
        }
    }
    can we set the minimum value in date (eg : 05/07/2012), not in Year ? In the documentation I only found 'yearFrom' and 'yearTo' config options to set the minimum and maximum on datepicker

    Thx

Posting Permissions

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