mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-07 06:06:47 +02:00
update to v4.1 docs and modify v4.0 docs to include links back
This commit is contained in:
32
docs/4.1/examples/tooltip-viewport/tooltip-viewport.js
Normal file
32
docs/4.1/examples/tooltip-viewport/tooltip-viewport.js
Normal file
@@ -0,0 +1,32 @@
|
||||
$(function () {
|
||||
'use strict'
|
||||
|
||||
$('.tooltip-right').tooltip({
|
||||
placement: 'right',
|
||||
viewport: {
|
||||
selector: 'body',
|
||||
padding: 2
|
||||
}
|
||||
})
|
||||
$('.tooltip-bottom').tooltip({
|
||||
placement: 'bottom',
|
||||
viewport: {
|
||||
selector: 'body',
|
||||
padding: 2
|
||||
}
|
||||
})
|
||||
$('.tooltip-viewport-right').tooltip({
|
||||
placement: 'right',
|
||||
viewport: {
|
||||
selector: '.container-viewport',
|
||||
padding: 2
|
||||
}
|
||||
})
|
||||
$('.tooltip-viewport-bottom').tooltip({
|
||||
placement: 'bottom',
|
||||
viewport: {
|
||||
selector: '.container-viewport',
|
||||
padding: 2
|
||||
}
|
||||
})
|
||||
})
|
Reference in New Issue
Block a user