BS5 components

This commit is contained in:
LEWE, GEORGE
2023-08-31 09:20:34 +02:00
parent 3dc54671da
commit e164129a4c
2 changed files with 18 additions and 15 deletions

View File

@@ -60,8 +60,10 @@ const adminlteJsUrl = path + "/js/adminlte.js";
<!--end::Bootstrap Tooltips-->
<!--begin::JavaScript-->
<script is:inline>
const toastTrigger = document.getElementById('liveToastBtn');
const toastLiveExample = document.getElementById('liveToast');
// const toastTrigger = document.getElementById('liveToastBtn');
// const toastLiveExample = document.getElementById('liveToast');
const toastTrigger = document.querySelector('[data-lte-show-toast="toastPrimary"]');
const toastLiveExample = document.getElementById('toastPrimary');
if (toastTrigger) {
const toastBootstrap = bootstrap.Toast.getOrCreateInstance(toastLiveExample);
toastTrigger.addEventListener('click', () => {