Skip to content

v.1.11.0

Compare
Choose a tag to compare
@jungeun-cho jungeun-cho released this 08 Mar 07:14

Features

  • Apply new design on API page.
    2019-03-08 15 51 02
  • Add various examples for users
    • You can also conveniently check the options for the example.
      2019-03-08 15 53 23

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('');
        }
      }
    });

Fix

  • Change Typescript definition file 'tui-calendar' export type to default export