Browse Source

feat(timeline): Add item data as argument to the template function (#2799)

dependencies
RealRegatta 7 years ago
committed by Alexander Wunschik
parent
commit
d13748348d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lib/timeline/component/item/Item.js

+ 1
- 1
lib/timeline/component/item/Item.js View File

@ -342,7 +342,7 @@ Item.prototype._updateContents = function (element) {
if (this.options.template) {
templateFunction = this.options.template.bind(this);
content = templateFunction(itemData, element);
content = templateFunction(itemData, element, this.data);
} else {
content = this.data.content;
}

Loading…
Cancel
Save