Twitter Bootstrap popover trigger: how to set multiple triggers?

前端 未结 5 1455
挽巷
挽巷 2020-12-16 14:27

I\'m trying to use http://twitter.github.io/bootstrap/javascript.html#popovers. I can set the trigger to any one of click | hover | focus | manual. Is there a w

5条回答
  •  佛祖请我去吃肉
    2020-12-16 14:49

    When initializing your popover, you may pass multiple triggers; separate them with a space.

       var options = {
           trigger: 'hover focus'
        }
    
        $('#has-popover').popover(options);
    

提交回复
热议问题