Есть ли способ встраивать SVG в Popup 3 Popover? Я могу заставить HTML работать в popover следующим образом:
var myText = 'here is some text'
$('#my-element').popover({
container: 'body',
content: myText,
placement: 'right',
html: true
})
То, что я действительно хотел бы сделать, - это программно создать SVG внутри такой функции:
$('#my-element').popover({
container: 'body',
content: function() {
// add a new div, #my-popover-div,
// then build an svg here by appending
// onto the newly created #my-popover-div
}
placement: 'right',
html: true
})
Возможно ли создать SVG внутри popover?