1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-09-02 01:42:36 +02:00
Add a live toast example to the docs
This commit is contained in:
XhmikosR
2021-01-18 20:59:59 +02:00
committed by GitHub
parent ee282aff27
commit d2477abecd
2 changed files with 50 additions and 1 deletions

View File

@@ -24,12 +24,17 @@
$('[data-toggle="popover"]').popover()
$('.toast')
$('.bd-example .toast')
.toast({
autohide: false
})
.toast('show')
// Live toast demo
$('#liveToastBtn').click(function () {
$('#liveToast').toast('show')
})
// Demos within modals
$('.tooltip-test').tooltip()
$('.popover-test').popover()