bootstrap-rating icon indicating copy to clipboard operation
bootstrap-rating copied to clipboard

Tool tip not showing

Open cmanish049 opened this issue 8 years ago • 3 comments

I am trying to integrate it in my site, plugin is working fine but tooltip is not showing. Can u please help?

cmanish049 avatar Aug 05 '16 04:08 cmanish049

Not sure what your problem is. I can point out some documentation and a little example using the bootstrap tooltip.

<input type="hidden" class="rating-tooltip"/>
$('input.rating-tooltip').rating({
  extendSymbol: function (rate) {
    $(this).tooltip({
      container: 'body',
      placement: 'bottom',
      title: 'Rate ' + rate
    });
  }
});

Check this bootstrap rating tooltip fiddle.

dreyescat avatar Aug 05 '16 13:08 dreyescat

If you use the class "rating" for the hidden input it will automatically apply the plugin but because of this if you try to initialize it with the option extendSymbol the callback won't be called (because it was already initialized). So, if you need to use extendSymbol don't give the class "rating" to the input element.

kuntur-studio avatar Sep 08 '16 06:09 kuntur-studio

As @kuntur-studio states rating auto-initialization could be the cause. Just avoid using rating as class name and it should work. In my example above I used rating-tooltip.

Take a look at issue #17 for more info.

dreyescat avatar Sep 08 '16 15:09 dreyescat