Use bootstrap 4 Popover

linkaiyi
Follow

how to dynamically change content

Very import to set a function for content:

$el.popover({
html: true,
trigger: 'manual',
placement: 'auto',
content: function() {return return_html.html()},
sanitize: false
}).popover('toggle');

Once the popover is hidden, the properties can not be set. Otherwise the properties can be accessed by $(‘#target’).data(‘bs.popover’).config (.content etc)

Object has 0 attachments

Was this article helpful?

This article is viewed 9 times!

Recent Viewed Articles

Related Articles

0 Comments

Leave a Comment

Support