You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 18, 2022. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+13-16Lines changed: 13 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -114,25 +114,13 @@ You can set date to be displayed by default with `date-set=""` attribute data (
114
114
####Custom titles
115
115
You can set the titles for the month and year selectors with the **date-year-title=""** and **date-month-title=""** data attributes (default to is _"select month"_ and _"select year"_)
You can also set the titles for the left and right arrows with **button-next-title=""** for the right and **button-prev-title=""** for the left. By default they are labeled _"next"_ and _"prev"_.
You can customize the calendar navigation buttons content, let's make an example while using [FontAwesome](http://fontawesome.io)
@@ -142,6 +130,15 @@ You can customize the calendar navigation buttons content, let's make an example
142
130
<inputng-model="date"type="text"/>
143
131
</datepicker>
144
132
```
133
+
####Custom buttons titles for arrows
134
+
You can also set the titles for the left and right arrows with **button-next-title=""** for the right and **button-prev-title=""** for the left. By default they are labeled _"next"_ and _"prev"_.
135
+
<datepickerbutton-prev-title="previous month">
136
+
<input ng-model="date"/>
137
+
</datepicker>
138
+
139
+
<datepickerbutton-next-title="next month">
140
+
<input ng-model="date" type="text"/>
141
+
</datepicker>
145
142
146
143
####Input as grandchild
147
144
Sometimes you cannot put date input as a first child of datepicker. In this case you may use `selector=""` to point to the CSS class of the input. Below example with using Twitter Bootstrap and FontAwesome
0 commit comments