0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-13 01:08:58 +01:00
Bootstrap/js/tests/visual/popover.html

49 lines
2.2 KiB
HTML
Raw Normal View History

<!doctype html>
2017-10-22 14:02:24 +02:00
<html lang="en">
2016-11-12 16:12:58 +01:00
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
2020-10-22 08:38:15 +02:00
<link href="../../../dist/css/bootstrap.min.css" rel="stylesheet">
2016-11-12 16:12:58 +01:00
<title>Popover</title>
</head>
<body>
<div class="container">
<h1>Popover <small>Bootstrap Visual Test</small></h1>
<button type="button" class="btn btn-secondary" data-bs-container="body" data-bs-toggle="popover" data-bs-placement="auto" data-bs-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus.">
2017-05-24 14:09:36 +02:00
Popover on auto
</button>
<button type="button" class="btn btn-secondary" data-bs-container="body" data-bs-toggle="popover" data-bs-placement="top" data-bs-content="Default placement was on top but not enough place">
2016-11-12 16:12:58 +01:00
Popover on top
</button>
<button type="button" class="btn btn-secondary" data-bs-container="body" data-bs-toggle="popover" data-bs-placement="right" data-bs-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus.">
Popover on end
2016-11-12 16:12:58 +01:00
</button>
<button type="button" class="btn btn-secondary" data-bs-container="body" data-bs-toggle="popover" data-bs-placement="bottom" data-bs-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus.">
2016-11-12 16:12:58 +01:00
Popover on bottom
</button>
<button type="button" class="btn btn-secondary" data-bs-container="body" data-bs-toggle="popover" data-bs-placement="left" data-bs-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus.">
Popover on start
2016-11-12 16:12:58 +01:00
</button>
</div>
2020-06-19 10:17:01 +02:00
<script src="../../../node_modules/@popperjs/core/dist/umd/popper.min.js"></script>
<script src="../../dist/dom/event-handler.js"></script>
<script src="../../dist/dom/selector-engine.js"></script>
2019-03-17 12:07:26 +01:00
<script src="../../dist/dom/manipulator.js"></script>
<script src="../../dist/dom/data.js"></script>
2016-11-12 16:12:58 +01:00
<script src="../../dist/tooltip.js"></script>
<script src="../../dist/popover.js"></script>
<script>
[].slice.call(document.querySelectorAll('[data-bs-toggle="popover"]'))
.forEach(function (popover) {
new Popover(popover)
})
2016-11-12 16:12:58 +01:00
</script>
</body>
</html>