Dynamically add a class to Bootstrap's 'popover' container

后端 未结 22 2556
名媛妹妹
名媛妹妹 2020-11-29 18:27

I\'ve thoroughly searched through both StackOverflow and Google, but come up empty. So apologies in advance if this has been asked & resolved already.

NB

22条回答
  •  孤独总比滥情好
    2020-11-29 19:03

    Also you can make use of 'template' options

    $element.popover({                               
       html: true,
       trigger: 'click',
       template: '',
       content: function() {
        return 'hello';
       }
    });
    

    Update MY_CLASS from you data-class attribute.

提交回复
热议问题