edit form refactor
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
<script>
|
||||
|
||||
import {onMount} from "svelte";
|
||||
import {onDestroy, onMount} from "svelte";
|
||||
import offcanvas from "bootstrap/js/src/offcanvas.js";
|
||||
export let title = "";
|
||||
let isHidden = true;
|
||||
let offcanvasEl;
|
||||
let offcanvasInstance;
|
||||
|
||||
@@ -14,13 +13,15 @@
|
||||
offcanvasInstance = new offcanvas(offcanvasEl);
|
||||
});
|
||||
|
||||
|
||||
|
||||
export function hide(e) {
|
||||
e.preventDefault();
|
||||
offcanvasInstance.hide();
|
||||
}
|
||||
</script>
|
||||
|
||||
<div bind:this={offcanvasEl} class="offcanvas offcanvas-end" data-bs-backdrop="static" tabindex="-1"
|
||||
<div bind:this={offcanvasEl} class="offcanvas offcanvas-end" tabindex="-1"
|
||||
aria-labelledby="offcanvasEditContent">
|
||||
<div class="offcanvas-header">
|
||||
<h5 class="offcanvas-title">{title}</h5>
|
||||
|
||||
Reference in New Issue
Block a user