Skip to content

Commit

Permalink
releases: 1.1.0-beta.1
Browse files Browse the repository at this point in the history
Add:
1. `isSaveHistory` Options. (#12)
2. `setHistory` , `getHistory`, `removeHistory` API
3. `countNextMonths` Options. (#16)

Improvements:
1.  scrolled to the top for load more
2. better style
  • Loading branch information
hsuanxyz committed May 12, 2017
1 parent fca9125 commit 98a2b92
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
3 changes: 1 addition & 2 deletions demo/ionic.config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "demo",
"app_id": "",
"v2": true,
"typescript": true
"type": "ionic-angular"
}
1 change: 1 addition & 0 deletions demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
},
"devDependencies": {
"@ionic/app-scripts": "1.1.3",
"@ionic/cli-plugin-ionic-angular": "1.0.0",
"typescript": "2.0.9"
},
"cordovaPlugins": [
Expand Down
15 changes: 8 additions & 7 deletions demo/src/pages/home/home.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export class HomePage {

setDefaultDate() {
this.calendarCtrl.openCalendar({
id:2,
id:'2',
from: new Date(2017,1,1),
defaultDate:new Date(2017,4,1)
})
Expand All @@ -51,7 +51,7 @@ export class HomePage {

setCssClass() {
this.calendarCtrl.openCalendar({
id:3,
id:'3',
cssClass:'my-class',
isRadio: false,
})
Expand All @@ -61,7 +61,7 @@ export class HomePage {

dateRange() {
this.calendarCtrl.openCalendar({
id:4,
id:'4',
isRadio: false,
canBackwardsSelected:true

Expand All @@ -72,7 +72,7 @@ export class HomePage {

maxAndMin() {
this.calendarCtrl.openCalendar({
id:5,
id:'5',
from: new Date(2017,1,1),
to : new Date(2017,2,5)
})
Expand All @@ -82,7 +82,7 @@ export class HomePage {

disableWeekdays() {
this.calendarCtrl.openCalendar({
id:6,
id:'6',
disableWeekdays:[0,6],
canBackwardsSelected:true

Expand All @@ -93,7 +93,7 @@ export class HomePage {

settingDisplay() {
this.calendarCtrl.openCalendar({
id:7,
id:'7',
monthTitle:'yyyy 年 MM 月 ',
weekdaysTitle:["天","一", "二", "三", "四", "五", "六"],
closeLabel:'',
Expand Down Expand Up @@ -145,13 +145,14 @@ export class HomePage {
_daysConfig.push(...this.days);

this.calendarCtrl.openCalendar({
id:8,
id:'8',
from: new Date(2017,0,1),
to : new Date(2017,11.1),
daysConfig:_daysConfig,
cssClass:'my-cal'
})
.then( (res:any) => { console.log(res) })

.catch( () => {} )
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ion2-calendar",
"version": "1.0.7",
"version": "1.1.0-beta.1",
"description": "A date picker for ionic2 ",
"main": "./dist/index.js",
"typings": "./dist/index.d.ts",
Expand Down

0 comments on commit 98a2b92

Please sign in to comment.