mirror of
https://github.com/xdan/datetimepicker.git
synced 2024-11-18 06:24:22 +00:00
Merge pull request #105 from fazleelahhee/master
beforeShowDay option added. Iterate over each day before rendering calen...
This commit is contained in:
commit
c505f52fc7
@ -888,6 +888,11 @@
|
||||
classes.push('xdsoft_weekend');
|
||||
}
|
||||
|
||||
if(options.beforeShowDay && typeof options.beforeShowDay == 'function')
|
||||
{
|
||||
classes.push(options.beforeShowDay(start))
|
||||
}
|
||||
|
||||
table+='<td data-date="'+d+'" data-month="'+m+'" data-year="'+y+'"'+' class="xdsoft_date xdsoft_day_of_week'+start.getDay()+' '+ classes.join(' ')+'">'+
|
||||
'<div>'+d+'</div>'+
|
||||
'</td>';
|
||||
|
Loading…
Reference in New Issue
Block a user