AngularUI: Custom Events on Angular-UI Tooltip

Twitter Bootstrap tooltips (that Angular-UI relies upon) have an option to specify the trigger event with an additional attribute as in data-trigger="mouseenter". This gives you a way of changing the trigger programmatically (with Angular):

So when button was selected, mls.isSelected=true then the tooltip-trigger expression will evaluate to mouseenter and tooltip will show up. Otherwise, the trigger will evaluate to ‘never’ which in return won’t fire up the tooltip.

Leave a Reply

Your email address will not be published. Required fields are marked *