fix(tooltip): Uncomment JQuery tooltip codes (#420)

This commit is contained in:
Róbert Kiss
2017-09-17 15:26:11 +02:00
committed by László Monda
parent 73ce1dfa67
commit 8f85254b5c

View File

@@ -30,24 +30,24 @@ export class TooltipDirective implements AfterContentInit, OnChanges {
}
private init() {
// jQuery(this.elementRef.nativeElement).tooltip({
// placement: this.placement,
// html: this.html,
// template: this.customTooltipTemplate,
// title: this.title
// });
(<any>jQuery(this.elementRef.nativeElement)).tooltip({
placement: this.placement,
html: this.html,
template: this.customTooltipTemplate,
title: this.title
});
}
private fixTitle() {
// jQuery(this.elementRef.nativeElement).tooltip({
// placement: this.placement,
// html: this.html,
// template: this.customTooltipTemplate,
// title: this.title
// });
(<any>jQuery(this.elementRef.nativeElement)).tooltip({
placement: this.placement,
html: this.html,
template: this.customTooltipTemplate,
title: this.title
});
// jQuery(this.elementRef.nativeElement)
// .attr('title', this.title)
// .tooltip('fixTitle');
(<any>jQuery(this.elementRef.nativeElement)
.attr('title', this.title))
.tooltip('fixTitle');
}
}