@@ -43,7 +43,7 @@ <h2>Getting Started</h2>
43
43
< div class ="col-md-12 " ng-controller ="DemoCtrl ">
44
44
< h2 > Demo</ h2 >
45
45
46
- < tien-clndr class ="clndr " tien-clndr-object ="clndr " tien-clndr-events ="events ">
46
+ < tien-clndr class ="clndr " tien-clndr-object ="clndr " tien-clndr-events ="events " tien-clndr-options =" options " >
47
47
< div class ="clndr-controls ">
48
48
< div class ="clndr-previous-button " ng-click ="clndr.back() ">
49
49
‹
@@ -80,6 +80,10 @@ <h2>Demo</h2>
80
80
< script >
81
81
app = angular . module ( 'clndrApp' , [ 'tien.clndr' ] ) ;
82
82
app . controller ( 'DemoCtrl' , function ( $scope ) {
83
+ $scope . options = {
84
+ weekOffset : 1 ,
85
+ daysOfTheWeek : [ 'ZO' , 'MA' , 'DI' , 'WO' , 'DO' , 'VR' , 'ZA' ]
86
+ } ;
83
87
$scope . events = [
84
88
{ date : moment ( ) . add ( 3 , 'days' ) . format ( ) , title : "Happy days" } ,
85
89
{ date : moment ( ) . subtract ( 5 , 'days' ) . format ( ) , title : "Good old days" } ,
@@ -106,6 +110,12 @@ <h2>Usage</h2>
106
110
to the directive with the < code > tien-clndr-events</ code > attribute. Events are available
107
111
on the scope at < code > day.events</ code > , as shown in the example below:
108
112
</ p >
113
+ < p >
114
+ To pass additional options on initialization of CLNDR, provide an options object to the
115
+ < code > tien-clndr-options</ code > attribute. See < a href ="https://github.com/kylestetz/CLNDR#usage "> CLNDR Usage</ a >
116
+ for all possible settings. Heads up: the < code > tien-clndr-options</ code > object is only read
117
+ once during transclusion!
118
+ </ p >
109
119
< pre > < code > <tien-clndr class="clndr" tien-clndr-object="clndr" tien-clndr-events="events">
110
120
<div class="clndr-controls">
111
121
<div class="clndr-previous-button" ng-click="clndr.back()">
0 commit comments