Skip to content

Commit

Permalink
Fixed eventDisplay bind.
Browse files Browse the repository at this point in the history
  • Loading branch information
dpaternina9 committed May 25, 2018
1 parent d14e6ab commit f3837f9
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 18 deletions.
6 changes: 5 additions & 1 deletion components/VueScheduler.vue
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,10 @@
type: Boolean,
default: () => config.showTimeMarker
},
eventDisplay: {
type: [String, Function],
default: () => config.eventDisplay
},
disableDialog: {
type: Boolean,
default: false
Expand Down Expand Up @@ -274,7 +278,7 @@
computed: {
newEvents() {
return this.events.map(e => {
return new Event(e);
return new Event(e).bindGetter('displayText', this.eventDisplay);
});
},
isPrevAllowed() {
Expand Down
Loading

0 comments on commit f3837f9

Please sign in to comment.