Skip to content

Commit

Permalink
Add options property for Tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
KoRiGaN committed Oct 2, 2017
1 parent 79c7bb6 commit 551f909
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/components/Tooltip.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ const props = {
type: String,
custom: true,
default: '',
},
options: {
type: Object
}
};
Expand All @@ -43,12 +46,12 @@ export default {
deferredMountedTo(parent) {
this.parent = parent;
if (this.content) {
this.parent.bindTooltip(this.content);
this.parent.bindTooltip(this.content, this.options);
}
},
setContent(newVal, oldVal) {
if (newVal) {
this.parent.bindTooltip(this.content);
this.parent.bindTooltip(this.content, this.options);
} else {
if (this.parent.getTooltip()) {
this.parent.unbindTooltip();
Expand Down

0 comments on commit 551f909

Please sign in to comment.