pianello-api/resources/js/pages/slideover/index.js
Ale Gallo 82f958e5da Committing laravel (part 3)
committing js templating files and components
2023-11-10 16:00:59 +01:00

24 lines
843 B
JavaScript

(function () {
"use strict";
// Show slide over
$("#programmatically-show-slideover").on("click", function () {
const el = document.querySelector("#programmatically-slideover");
const slideOver = tailwind.Modal.getOrCreateInstance(el);
slideOver.show();
});
// Hide slide over
$("#programmatically-hide-slideover").on("click", function () {
const el = document.querySelector("#programmatically-slideover");
const slideOver = tailwind.Modal.getOrCreateInstance(el);
slideOver.hide();
});
// Toggle slide over
$("#programmatically-toggle-slideover").on("click", function () {
const el = document.querySelector("#programmatically-slideover");
const slideOver = tailwind.Modal.getOrCreateInstance(el);
slideOver.toggle();
});
})();