Skip to content

Commit

Permalink
chore(ionic): ion2-calendar 1.0.6
Browse files Browse the repository at this point in the history
feat: Add default date, let the view scroll to the default date.
feat: Scroll backwards.(#2)
  • Loading branch information
hsuanxyz committed Mar 30, 2017
1 parent 2935a14 commit 22b562d
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 6 deletions.
1 change: 1 addition & 0 deletions README-CN.md
Expand Up @@ -188,6 +188,7 @@ daysConfig() {
| defaultDate | Date || 让视图滚动到默认日期|
| cssClass | string | `''` | 自定义css类,多个用空格分开 |
| isRadio | boolean | `true` | 设置是否单选 ,如果为false则选择日期范围 |
| canBackwardsSelected | boolean | `false` | 能否向后选择 |
| disableWeekdays | Array<number> | `[]` | 需要禁用的星期数 (0-6,重0开始) |
| closeLabel | string | `cancel` | 取消按钮文字,可以为空 |
| monthTitle | string | `'MMM yyyy'` | 设置月份显示格式 |
Expand Down
3 changes: 2 additions & 1 deletion README.md
Expand Up @@ -200,6 +200,7 @@ daysConfig() {
| title | string | `'Calendar'` | title |
| defaultDate | Date | none | let the view scroll to the default date|
| cssClass | string | `''` | Additional classes for custom styles, separated by spaces. |
| canBackwardsSelected | boolean | `false` | can backwards selected |
| isRadio | boolean | `true` | true for one day ,false for range dates |
| disableWeekdays | Array<number> | `[]` | week to be disabled (0-6) |
| closeLabel | string | `cancel` | cancel button label ,can be an empty string |
Expand Down Expand Up @@ -244,7 +245,7 @@ daysConfig() {
1. ~~Add style settings.~~
2. ~~Add default date, let the view scroll to the default date.~~
3. To today
4. Scroll backwards ([#2](https://github.com/HsuanXyz/ion2-calendar/issues/2))
4. ~~Scroll backwards ([#2](https://github.com/HsuanXyz/ion2-calendar/issues/2))~~

# Environment
```
Expand Down
2 changes: 1 addition & 1 deletion demo/package.json
Expand Up @@ -20,7 +20,7 @@
"@angular/platform-browser-dynamic": "2.2.1",
"@angular/platform-server": "2.2.1",
"@ionic/storage": "1.1.7",
"ion2-calendar": "^1.0.4",
"ion2-calendar": "^1.0.6",
"ionic-angular": "2.1.0",
"ionic-native": "2.4.1",
"ionicons": "3.0.0",
Expand Down
Binary file added demo/src/assets/icon/favicon.ico
Binary file not shown.
6 changes: 3 additions & 3 deletions demo/src/pages/home/home.ts
Expand Up @@ -20,7 +20,7 @@ export class HomePage {
basic() {
this.calendarCtrl.openCalendar({
title:'basic demo',
scrollBackwards:true
canBackwardsSelected:true
})
.then( (res:any) => { console.log(res) })
.catch( () => {} )
Expand Down Expand Up @@ -48,7 +48,7 @@ export class HomePage {
dateRange() {
this.calendarCtrl.openCalendar({
isRadio: false,
scrollBackwards:true
canBackwardsSelected:true

})
.then( (res:any) => { console.log(res) })
Expand All @@ -67,7 +67,7 @@ export class HomePage {
disableWeekdays() {
this.calendarCtrl.openCalendar({
disableWeekdays:[0,6],
scrollBackwards:true
canBackwardsSelected:true

})
.then( (res:any) => { console.log(res) })
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "ion2-calendar",
"version": "1.0.5",
"version": "1.0.6",
"description": "A date picker for ionic2 ",
"main": "./dist/index.js",
"typings": "./dist/index.d.ts",
Expand Down

0 comments on commit 22b562d

Please sign in to comment.