bootstrap-popover

Add Bootstrap popover programmatically vue-full-calendar

久未见 提交于 2020-12-06 04:31:02
问题 My end goal is to add a Bootstrap 4 Popover to Full Calendar to display calendar event descriptions, since depending on the view, Full Calendar cuts off the Title/description. Since Full Calendar is generating everything based off of the events prop I pass to it, I haven't been able to figure out how to add a popover of any sort. (I could probably do it with jQuery, but I'm really trying to cut jQuery out of the project to make my build size smaller) There is great documentation here on

Add Bootstrap popover programmatically vue-full-calendar

空扰寡人 提交于 2020-12-06 04:30:47
问题 My end goal is to add a Bootstrap 4 Popover to Full Calendar to display calendar event descriptions, since depending on the view, Full Calendar cuts off the Title/description. Since Full Calendar is generating everything based off of the events prop I pass to it, I haven't been able to figure out how to add a popover of any sort. (I could probably do it with jQuery, but I'm really trying to cut jQuery out of the project to make my build size smaller) There is great documentation here on

How to include a Form inside a Popover using Bootstrap 4.3?

五迷三道 提交于 2020-03-23 05:15:38
问题 I am trying to include a form inside a Popover, created using Bootstrap 4.3, Popper.js and jQuery 3. The latest version of each. The problem is that it works with text, it works with tags, but as soon as I use forms, labels and inputs it doesn't parse the HTML. I have two examples in CodePen: Everything via data-attributes: link Via JS: link Example 1 code HTML: <div class="container"> <div class="row"> <div class="col-12 mt-5"> <h1>Bootstrap 4 form in popover</h1> <hr> </div> </div> <div

HTML tags inside Bootstrap popover are not rendered

淺唱寂寞╮ 提交于 2020-03-04 15:34:09
问题 I'm having an issue and I cannot figure out why the HTML tags inside a popover will not get rendered. JS fiddle here: http://jsfiddle.net/792xcgju/ <!-- Popover #1 --> <a href="#" class="btn btn-primary" tabindex="0" data-toggle="popover" data-trigger="focus" data-popover-content="#a1" data-placement="top">Popover Example</a> <hr> <!-- Popover #2 --> <a href="#" class="btn btn-primary" tabindex="0" data-toggle="popover" data-trigger="focus" data-popover-content="#a2">Popover Example</a> <!--

How to prevent the popover div for hiding on clicking inside it for twitter bootstrap “dismissible popover”(data-trigger=“focus”)?

為{幸葍}努か 提交于 2020-01-01 08:26:10
问题 I have a a dismissible popover(data-trigger="focus") with a text box inside it. But as soon as I click inside the text box to type it dissappear because of the "data-trigger="focus". How do I make the div intelligently not disappear on click inside it? Here is my html : <head><script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js" ></script> <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script></head> <body><div><a class=

Bootstrap modal, modal-body with overflow, popover pops under header or foorter. Any workaround?

主宰稳场 提交于 2019-12-24 06:45:34
问题 I'm looking for a proper workaround for that bootstrap problem. When we use the following css hack from some other stack overflow questions to make sure the modal doesn't go higher than the screen and at the same time having a vertical scrollbar for the body. This actually works just fine and is the desired behavior. .modal-body { max-height: calc(100vh - 210px); overflow-y: auto; } the popover inside the modal-body pops under the header and/or footer. See the following fiddle for an example

How to make popover appear where my mouse enters the hover target?

人走茶凉 提交于 2019-12-20 10:08:48
问题 This is an example code to show the popover window display below my button: $.fn.popover.defaults = $.extend({} , $.fn.tooltip.defaults, { placement: 'bottom', content: '' Now I want the popover window appear on the place where my cursor moves on(not only top/bottom/left/right, but a specific location which depends on where user put their cursor on). How to get it? 回答1: In bootstrap-tooltip.js, replace (at about line 72) , enter: function (e) { with , enter: function (e) { var mousePos = { x:

Bootstrap 3 - Popover div html

一笑奈何 提交于 2019-12-19 03:53:11
问题 I based in this example: https://jsfiddle.net/hL0pvaty/ But the popover must contain a html div , therefore, what I want is a mixture between the first and the second link: https://maxalley.wordpress.com/2014/08/19/bootstrap-3-popover-with-html-content/ This is the js code: $(document).on("click", ".show-popover-div", function (e) { $('[rel="popover"]').popover({ container: 'body', html: true, content: function () { var clone = $($(this).data('popover-content')).clone(true).removeClass('hide'

Get the elements of HTML tags inside data-content of popover

早过忘川 提交于 2019-12-13 17:03:12
问题 I am working in the "popover" of Bootstrap3. Here I have placed the HTML contents like below, <a href='#' class='btn' title ='Test' data-trigger='focus' data- toggle='popover' data-html='true' id = 'testOutside' data-content='<a href="#" id="testInside" class="btn">Inside</a>'>Click Here </a> I am not able to refer to the html element present inside the data-content attribute. Like below, $(document).ready(function(){ $('[data-toggle="popover"]').popover(); // the below is not working $('

bootstrap popover called twice

♀尐吖头ヾ 提交于 2019-12-13 05:04:28
问题 On my click event I'm displaying the bootstrap popover, it works but it's being displayed twice. Once on the bottom, like I have defined and once on the bottom right. Code and pics below. If I set a breakpoint at return $("#events-popover-head").html(); I can see that this code is being called 4 times!!! I see that this might be a known bug with twitter bootstrap. I read here that it happens when you don't have a title, but I have both a title and content. I'm using bootstrap 3.3.1 Is there