Skip to content
This repository was archived by the owner on Feb 18, 2022. It is now read-only.

Commit aa9099e

Browse files
Added new optional title fields to readme
1 parent 4767b83 commit aa9099e

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,30 @@ You can set date to be displayed by default with `date-set=""` attribute data (
111111
</datepicker>
112112
```
113113

114+
#### Custom titles
115+
You can set the titles for the month and year selectors with 'yearTitle="" and 'monthTitle=""'. Set by default to "select month" and "select year".
116+
117+
<datepicker >
118+
<input ng-model="date" monthTitle="selected year"/>
119+
</datepicker>
120+
121+
122+
<datepicker >
123+
<input ng-model="date" yearTitle="selected title"/>
124+
</datepicker>
125+
126+
127+
### Custom titles for arrows
128+
You can also set the titles for the left and right arrows with 'nextTitle=""' for the right and 'prevTitle=""' for the left. By default they are labeled "next" and "prev".
129+
<datepicker >
130+
<input ng-model="date" prevTitle="previous month"/>
131+
</datepicker>
132+
133+
<datepicker >
134+
<input ng-model="date" nextTitle="next month"/>
135+
</datepicker>
136+
137+
114138
####Custom buttons
115139
You can customize the calendar navigation buttons content, let's make an example while using [FontAwesome](http://fontawesome.io)
116140

0 commit comments

Comments
 (0)