I have a table , on hover on a particular cell i need to show the tool tip with different values based on the cell it hovered .
I want to know how to use the plugin in Angular way and I'm facing problems in existing design.
Problem:
-Its not working on first hover.
-On second hover Tool tipster showing only the first value it hovered for all the cells.Values are not changing
-It should show the associateID with time
$scope.SwipeDataDetails = function (associateid) {
$('.tooltip').tooltipster({
content: $('<div class="swipePopup"><div class="arrowPop"></div><div class="swipePopDetails"><div class="swipeContent1 fLeft"><img src="../images/Swipe_in.png"/> Swipe-In Time</div><div class="swipeContent2 fRight">' + associateid + '10:00AM' + '</div></div><div class="swipePopDetails"><div class="swipeContent1 fLeft"><img src="../images/Swipe_out.png"/> Swipe-Out Time</div><div class="swipeContent2 fRight">' + associateid + '11:00AM' + '</div></div><div class="swipePopDetailsTotal"><div class="swipeContent1 fLeft">Total Swipe Hours</div><div class="swipeContent2 fRight">' + associateid + '1.0' + '</div></div></div>'),
position: 'left',
offsetX: 0,
multiple:true
});
};
Getting error in console like
Tooltipster: one or more tooltips are already attached to this element: ignoring. Use the "multiple" option to attach more tooltips.
Here is my Plunker
But my requirement is not to use multiple tool tip , change the values of the existing tool tip on hovering on a particular cell.
When multiple option is attached its not working for the first time .
Not sure this is the correct way of using jquery plugins in angular js. looking for the thumb rules/steps/procedure on using jquery plugins in angular js.
Pls guide me or is there any better way to acheive this.I'm a newbie to angular js.