Skip to content
This repository has been archived by the owner on Jul 1, 2022. It is now read-only.

Commit

Permalink
fix : add supported api (#23)
Browse files Browse the repository at this point in the history
add 'disableClick' prop in Calendar Option
add 'usageStatistics' prop in Calendar Option
  • Loading branch information
jungeun-cho authored Jun 27, 2019
1 parent a302b32 commit d2b0615
Showing 1 changed file with 21 additions and 22 deletions.
43 changes: 21 additions & 22 deletions src/Calendar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,21 +46,15 @@ export default {
},
view: {
type: String,
default() {
return 'week';
}
default: 'week'
},
taskView: {
type: [Boolean, Array],
default() {
return true;
}
default: true
},
scheduleView: {
type: [Boolean, Array],
default() {
return true;
}
default: true
},
theme: {
type: Object,
Expand Down Expand Up @@ -88,15 +82,11 @@ export default {
},
useCreationPopup: {
type: Boolean,
default() {
return true;
}
default: true
},
useDetailPopup: {
type: Boolean,
default() {
return true;
}
default: true
},
timezones: {
type: Array,
Expand All @@ -106,15 +96,19 @@ export default {
},
disableDblClick: {
type: Boolean,
default() {
return false;
}
default: false
},
disableClick: {
type: Boolean,
default: false
},
isReadOnly: {
type: Boolean,
default() {
return false;
}
default: false
},
usageStatistics: {
type: Boolean,
default: true
}
},
watch: {
Expand Down Expand Up @@ -160,6 +154,9 @@ export default {
disableDblClick(newValue) {
this.calendarInstance.setOptions({disableDblClick: newValue});
},
disableClick(newValue) {
this.calendarInstance.setOptions({disableClick: newValue});
},
isReadOnly(newValue) {
this.calendarInstance.setOptions({isReadOnly: newValue});
}
Expand All @@ -183,7 +180,9 @@ export default {
useDetailPopup: this.useDetailPopup,
timezones: this.timezones,
disableDblClick: this.disableDblClick,
isReadOnly: this.isReadOnly
disableClick: this.disableClick,
isReadOnly: this.isReadOnly,
usageStatistics: this.usageStatistics
});
this.addEventListeners();
this.reflectSchedules();
Expand Down

0 comments on commit d2b0615

Please sign in to comment.