V
V
Vadim Yagofarov2019-03-21 22:38:42
JavaScript
Vadim Yagofarov, 2019-03-21 22:38:42

How to add popevera close button?

How to add popevera close button? Tried like this didn't help. Website

$(function () {
    $('[data-toggle="popover"]').popover({
        html: true,
        template: '<div class="popover" role="tooltip"><div class="arrow"></div><div class="popover-body"><div class="popever__close">x</div></div></div>'
    })
  })

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladislav Marudenko, 2019-03-21
@INPVLSA

https://itchief.ru/lessons/bootstrap-3/99-bootstra...

M
maxsnw, 2019-03-22
@maxsnw

adding a button to the pop-over layout. The block in which the button will be located has a position relative, and the button has an absolute. You align using the properties top left right bottom. In the script, you click on the button and the desired action with a pop-over on click, a hyde toggle, or something else.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question