#12276 closed enhancement (fixed)
Calendar: create light calendar suitable for mobile
Reported by: | bill | Owned by: | bill |
---|---|---|---|
Priority: | high | Milestone: | 1.7 |
Component: | Dijit | Version: | 1.6.0b1 |
Keywords: | 1.7-mobile | Cc: | |
Blocked By: | Blocking: |
Description
Refactor Calendar, splitting out code needed by mobile into base class, to make smaller code footprint.
The light version of Calendar will be different from the current desktop version by:
- no month drop down (in order to avoid loading popup code, and widgetsInTemplate support)
- don't use _CssStateMixin but rather CSS pseudo-selectors :hover, :active, etc. (this would probably be in CSS files in dojox/mobile)
- no keyboard support
- etc.
Other changes:
- don't use dojo.query() in either version of Calendar
Change History (13)
comment:1 Changed 10 years ago by
comment:2 Changed 10 years ago by
Keywords: | 1.7-mobile added |
---|
comment:3 Changed 10 years ago by
Type: | task → enhancement |
---|
comment:4 Changed 10 years ago by
comment:6 Changed 10 years ago by
Yes, still planning on it, although I also think it's usable as-is. (I've already done most of the work, remaining task is to remove the month drop down.)
comment:8 Changed 10 years ago by
No, someone needs to do that, I wasn't planning on providing any mobile themes for the Calendar, or any other dijit widgets.
comment:9 Changed 10 years ago by
Hi Bill, You may want to check out the dojox/mobile/test_Opener.html example i checked in...uses a restyled version of dijit.Calendar. I tried to update to use CalendarLite?, but get some keypress event handling errors.
comment:10 Changed 10 years ago by
comment:11 Changed 10 years ago by
I changed test_Opener.html to use CalendarLite; it's working for me.
comment:12 Changed 10 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
(In [23939]) Remove Calendar dependency on dojo.query().
The Calendar template has been modified to have ${!dayCellsHtml} and ${!dateRowsHtml} variables for the M-F (days of week) row, and the 1-31 days-of-the-month cells. Custom calendar templates should be updated to contain these variables rather than markup for those sections.
If custom versions of Calendar need to modify the structure of days-of-week or days-of-month cells, they can override the new Calendar attributes: dowTemplateString, dateTemplateString, and weekTemplateString.
Refs #12276 !strict.