开发者

jQuery datepicker questions

First :

Is it possible to set either an option or to easily change jQuery UI core code so the datepicker will always show a fixed amount of rows(/weeks) ?

Displaying a month takes either 5 or 6 rows/weeks, and the difference in height is not something I want using an inline datepicker.

Answered: hardcode th开发者_运维知识库e variable numRows in ui.datepicker.js var numRows = 6;

Second:

Is it also possible to change 'Su Mo Tu We Th Fr Sa' to 'S M T W T F S' ?

Answered: dayNamesMin: ['S','M','T','W','T','F','S']

Third:

Is it possible to have the month AND year in one and the same dropdown menu (between the arrows)? In the css file there is a line ' .ui-datepicker select.ui-datepicker-month-year {width: 100%;}' which suggests it is possible, but I can't find the js code to enable this.

Fourth:

And also, is it possible besides showing dates from other months, to make them selectable as well ? (non-selectable by default when using showOtherMonths: true)

Thanks


First:

That will mean cutting off some days from a month. Do you really want this?

Second:

See the daysNameMin and daysNameShort properties.

Fourth:

These are selectable by default.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜