Done for the night!
This commit is contained in:
@@ -1 +0,0 @@
|
||||
// export const prerender = true
|
||||
@@ -3,6 +3,10 @@ import { onMount } from 'svelte';
|
||||
|
||||
// To retrieve the store, getModalStore must be invoked at the top level of your component!
|
||||
import { getDrawerStore, getModalStore } from '@skeletonlabs/skeleton';
|
||||
import type {
|
||||
DrawerSettings,
|
||||
// ModalSettings, ModalComponent, ModalStore
|
||||
} from '@skeletonlabs/skeleton';
|
||||
const modalStore = getModalStore();
|
||||
|
||||
import { api } from '$lib/api';
|
||||
@@ -165,13 +169,18 @@ async function handle_load_ae_sponsorship_obj_li({account_id, try_cache=true}) {
|
||||
|
||||
const drawerStore = getDrawerStore();
|
||||
|
||||
const drawer_settings_edit: DrawerSettings = {
|
||||
id: 'sponsorships__edit',
|
||||
meta: { foo: 'bar', fizz: 'buzz', age: 40 }
|
||||
};
|
||||
|
||||
const drawer_settings_x: DrawerSettings = {
|
||||
id: 'example-2',
|
||||
id: 'example-1',
|
||||
meta: { foo: 'bar', fizz: 'buzz', age: 40 }
|
||||
};
|
||||
|
||||
const drawer_settings_y: DrawerSettings = {
|
||||
id: 'example-3',
|
||||
id: 'example-2',
|
||||
// Provide your property overrides:
|
||||
bgDrawer: 'bg-purple-900 text-white',
|
||||
bgBackdrop: 'bg-gradient-to-tr from-indigo-500/50 via-purple-500/50 to-pink-500/50',
|
||||
@@ -205,6 +214,15 @@ const drawer_settings_y: DrawerSettings = {
|
||||
>
|
||||
Open Drawer Y
|
||||
</button>
|
||||
|
||||
<button
|
||||
on:click={() => {
|
||||
console.log('Open drawer');
|
||||
drawerStore.open(drawer_settings_edit);
|
||||
}}
|
||||
>
|
||||
Open Drawer Edit
|
||||
</button>
|
||||
</section>
|
||||
|
||||
<section class="sponsorships_list">
|
||||
|
||||
Reference in New Issue
Block a user