1.0.0-beta.1 • Published 9 years ago
ion-datetime-picker-calendar-fixed v1.0.0-beta.1
ion-datetime-picker-calendar-fixed
International fixed calendar - for ion-datetime-picker
Installation
Use bower or npm to install this module:
bower install ion-datetime-picker-calendar-fixed --savenpm install ion-datetime-picker ion-datetime-picker-calendar-fixed --saveImport the javascript file into your HTML file (or use webpack):
<script src="lib/ion-datetime-picker-calendar-fixed/dist/index.js"></script>
Usage
Use fixed as a value of calendar attribute when you define your picker.
<ion-datetime-picker calendar="fixed" ...></ion-datetime-picker>See ion-datetime-picker README for more info.
Internationalization
Inject $ionDtpCalendarFixed 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($ionDtpCalendarFixed) {
$ionicPickerI18n.weekDays = ["Нд", "Lu", "Út", "Mi", "To", "금", "Sá"];
$ionicPickerI18n.months = ["Janvier", "Febrero", "März", "四月", "Maio", "Kesäkuu", "Sol", "Červenec", "अगस्त", "Вересень", "Październik", "Νοέμβριος", "డిసెంబర్"];
});1.0.0-beta.1
9 years ago
1.0.0
9 years ago