Toast improve
This commit is contained in:
@@ -52,22 +52,3 @@ const adminlteJsUrl = path + "/js/adminlte.js";
|
||||
});
|
||||
</script>
|
||||
<!--end::OverlayScrollbars Configure-->
|
||||
<!--begin::Bootstrap Tooltips-->
|
||||
<script is:inline>
|
||||
const tooltipTriggerList = document.querySelectorAll('[data-bs-toggle="tooltip"]')
|
||||
const tooltipList = [...tooltipTriggerList].map(tooltipTriggerEl => new bootstrap.Tooltip(tooltipTriggerEl));
|
||||
</script>
|
||||
<!--end::Bootstrap Tooltips-->
|
||||
<!--begin::Bootstrap Toasts-->
|
||||
<script is:inline>
|
||||
const toastTriggerList = document.querySelectorAll('[data-bs-toggle="toast"]')
|
||||
toastTriggerList.forEach(btn => {
|
||||
btn.addEventListener('click', event => {
|
||||
event.preventDefault();
|
||||
const toastEle = document.getElementById(btn.getAttribute('data-bs-target'));
|
||||
const toastBootstrap = bootstrap.Toast.getOrCreateInstance(toastEle);
|
||||
toastBootstrap.show();
|
||||
})
|
||||
})
|
||||
</script>
|
||||
<!--end::Bootstrap Toasts-->
|
||||
|
||||
@@ -219,10 +219,10 @@ const htmlPath = convertPathToHtml(path);
|
||||
<li class="nav-item">
|
||||
<a
|
||||
href={htmlPath + "/UI/general.html"}
|
||||
class:list={["nav-link", page === "bsgeneral" && "active"]}
|
||||
class:list={["nav-link", page === "general" && "active"]}
|
||||
>
|
||||
<i class="nav-icon bi bi-circle"></i>
|
||||
<p>General Elements</p>
|
||||
<p>General</p>
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
|
||||
Reference in New Issue
Block a user