Results 1 to 6 of 6

Thread: Ext.picker.Date: anyway to show special dates?

  1. #1
    Sencha User
    Join Date
    Jan 2008
    Location
    Los Angeles
    Posts
    149
    Answers
    1
    Vote Rating
    1
      0  

    Default Ext.picker.Date: anyway to show special dates?

    I want to be able to show special days (i.e. pay dates or company holidays) with css and possibly with a hover. There was a ux that did this in Ext 2.x, but would like to have this functionality available. Does anyone know if this can be done?

    If not, I'm surprised this hasn't been asked for yet and would think this should be in the Ext.picker.Date class by default.

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,551
    Answers
    3931
    Vote Rating
    1271
      0  

    Default

    So you want control of what CSS classes to put on each day cell?
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Jan 2008
    Location
    Los Angeles
    Posts
    149
    Answers
    1
    Vote Rating
    1
      0  

    Default

    Quote Originally Posted by mitchellsimoens View Post
    So you want control of what CSS classes to put on each day cell?
    Yes, you're dead on. For example, visually display that Labor Day is a holiday if I give some type of array or config of special events as input.

    Maybe something like this:

    Code:
    events: [
    { name: 'Christmas',  extraCls: 'holiday christmas', date: '12/25/2012'}
    { name: 'New Year\'s Day',  extraCls: 'holiday', date: '01/01/2013'}
    ]
    As of right now, there is no control of specific dates. I either want to display visually or even disable on Ext.picker.Date when necessary.

  4. #4
    Sencha User
    Join Date
    Jan 2008
    Location
    Los Angeles
    Posts
    149
    Answers
    1
    Vote Rating
    1
      0  

    Default

    Bump? I would think at least the dates should be labeled with some sort of date css by default. That way at least I can override the css.

    Code:
    <td id="ext-gen1250" role="gridcell" class="x-datepicker-active" title="October 24, 2012">
    Might have something like
    Code:
    <td id="ext-gen1250" role="gridcell" class="x-datepicker-active 2012-10-24" title="October 24, 2012">

  5. #5
    Sencha User
    Join Date
    Jan 2008
    Location
    Los Angeles
    Posts
    149
    Answers
    1
    Vote Rating
    1
      0  

    Default

    Bump. Anyone have an idea?

  6. #6
    Sencha User
    Join Date
    Jan 2008
    Location
    Los Angeles
    Posts
    149
    Answers
    1
    Vote Rating
    1
      0  

    Default

    So I'm guessing there's no solution? I would think this should be in the widget. I can't believe no one else wants this usage.

Posting Permissions

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