v.1.11.0
Features
- Apply new design on API page.
- Add various examples for users
Add
-
support current time template on weekly, daily view
- use
timegridCurrentTime
props
const cal = new Calendar('#calendar', { defaultView: 'week', template: { timegridCurrentTime: function(timezone) { var templates = []; if (timezone.dateDifference) { templates.push('[' + timezone.dateDifferenceSign + timezone.dateDifference + ']<br>'); } templates.push(moment(timezone.hourmarker).format('HH:mm a')); return templates.join(''); } } });
- use
Fix
- Change Typescript definition file 'tui-calendar' export type to default export