Changing the width of Bootstrap popover

后端 未结 23 1608
北恋
北恋 2020-11-27 10:51

I am designing a page using Bootstrap 3. I am trying to use a popover with placement: right on an input element. The new Bootstrap ensures that if you use

23条回答
  •  孤街浪徒
    2020-11-27 11:17

    Here's the non-coffeescript way of doing it with hover:

    $(".product-search-trigger").popover({
        trigger: "hover",
        container: "body",
        html: true,
        placement: "left"
      }).on("show.bs.popover", function() {
        return $(this).data("bs.popover").tip().css({
          maxWidth: "300px"
        });
      });
    });
    

提交回复
热议问题