adding container option to tooltips
This commit is contained in:
parent
48211ad9f5
commit
d594d6377a
1 changed files with 3 additions and 1 deletions
4
js/bootstrap-tooltip.js
vendored
4
js/bootstrap-tooltip.js
vendored
|
|
@ -126,7 +126,8 @@
|
|||
$tip
|
||||
.detach()
|
||||
.css({ top: 0, left: 0, display: 'block' })
|
||||
.insertAfter(this.$element)
|
||||
|
||||
this.options.container && $tip.appendTo(this.options.container).length || $tip.insertAfter(this.$element)
|
||||
|
||||
pos = this.getPosition()
|
||||
|
||||
|
|
@ -279,6 +280,7 @@
|
|||
, title: ''
|
||||
, delay: 0
|
||||
, html: false
|
||||
, container: ''
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue