Skip to content

PhilHuot/angular-clndr

 
 

Repository files navigation

angular-clndr

An angular directive for CLNDR.js. With this directive you can render the CLNDR-template Angular-style.

Brought to you by 10KB.

Demo

You can find a demo on the homepage.

Usage & configuration

For a complete documentation check the homepage.

Directive usage:

<tien-clndr tien-clndr-object="clndr" tien-clndr-events="events">
  <div class="clndr-controls">
    <div class="clndr-previous-button" ng-click="clndr.back()">
      &lsaquo;
    </div>
    <div class="month">
      {{month}}
    </div>
    <div class="clndr-next-button" ng-click="clndr.forward()">
      &rsaquo;
    </div>
  </div>
  <div class="clndr-grid">
    <div class="days-of-the-week">
      <div class="header-day" ng-repeat="day in daysOfTheWeek track by $index">
        {{day}}
      </div>
    </div>
    <div class="days">
      <div class="{{day.classes}}" ng-repeat="day in days">
        <div class="event-indicator" ng-show="day.events.length" ng-click="showEvents(day.events)">{{day.events.length}}</div>
        {{day.day}}
      </div>
    </div>
  </div>
</tien-clndr>

License

angular-clndr is released under the MIT license.

About

An angular directive for CLNDR.js

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HTML 64.4%
  • CSS 20.1%
  • CoffeeScript 15.5%