ion-datetime-picker-calendar-asgardia
v1.0.0-beta.1
Published
Asgardia calendar for ion-datetime-picker
Downloads
4
Readme
ion-datetime-picker-calendar-asgardia
Asgardia calendar with leap day after June - for ion-datetime-picker
Installation
Use bower or npm to install this module:
bower install ion-datetime-picker-calendar-asgardia --save
npm install ion-datetime-picker ion-datetime-picker-calendar-asgardia --save
Import the javascript file into your HTML file (or use webpack):
<script src="lib/ion-datetime-picker-calendar-asgardia/dist/index.js"></script>
Usage
Use asgardia
as a value of calendar
attribute when you define your picker.
<ion-datetime-picker calendar="asgardia" ...></ion-datetime-picker>
See ion-datetime-picker README for more info.
Internationalization
Inject $ionDtpCalendarAsgardia
service into your code and set your localized strings. English ones are used as default.
weekDays
key
Array of weekdays abbreviations, starting from Sunday.
months
key
Array of months names, starting from January.
angular.module("myApp")
.run(function($ionDtpCalendarAsgardia) {
$ionicPickerI18n.weekDays = ["Нд", "Lu", "Út", "Mi", "To", "금", "Sá"];
$ionicPickerI18n.months = ["Janvier", "Febrero", "März", "四月", "Maio", "Kesäkuu", "Sol", "Červenec", "अगस्त", "Вересень", "Październik", "Νοέμβριος", "డిసెంబర్"];
});