#4982 closed enhancement (wontfix)
Week end config
Reported by: | geniusgroup | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | ui.datepicker | Version: | 1.7.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
In current datepicker it enforces the css class ui-datepicker-week-end to TWO weekdays (e.g. SAT and SUN)
It is caused by the following code segment
((dow + firstDay + 6) % 7 >= 5
If we can change 5 to other numbers (e.g. 6), then the number of css class ui-datepicker-week-end could also be controlled and specific css formatting (td background color, font size, etc.) will be applied to corresponding column.
Change History (3)
comment:1 Changed 14 years ago by
Resolution: | → wontfix |
---|---|
Status: | new → closed |
comment:2 Changed 14 years ago by
but how to change the title row by using "beforeShowDay" ?
Example: <tr class="ui-datepicker-title-row"> <td class="ui-datepicker-week-end-cell"><span title="SUN">SUN</span></td> <td><span title="MON">MON</span></td> ... <td class="ui-datepicker-week-end-cell"><span title="SAT">SAT</span></td> </tr>
Since datepicker hardcoded SUN and SAT as weekend, I cannot apply different CSS settings to SUN and SAT title cell
You can use the beforeShowDay setting to add custom CSS classes to individual dates.