Mobiscroll カレンダー ( http://mobiscroll.com/ ) では、Mobiscroll カレンダーの初期化時にマーク日を設定できます。カレンダーが初期化された後にマーク日を更新する方法はありますか? ドキュメントでそうする方法が見つからないようです。
1 に答える
0
ドキュメントの例:
$(function(){
$('#calendar').mobiscroll().calendar({
marked: { dates: [ new Date(2013, 5, 6), new Date(2013, 5, 10) ] }, // Initially marked days
onMonthChange: function (year, month, inst) {
// Load marked days for (year, month), (year, month - 1), (year, month + 1)
// Update dates only
inst.settings.marked.dates = [ new Date(year, month - 1, 15), new Date(year, month, 15), new Date(year, month + 1, 15) ];
// OR Update the whole marked object (only if necessary)
inst.settings.marked = {
dates: [ new Date(year, month - 1, 15), new Date(year, month, 15), new Date(year, month + 1, 15) ],
daysOfMonth: ['5/1', '12/24', '12/25']
};
}
});
});
于 2013-07-02T06:41:46.063 に答える