context menu tags - can use forward ref

This commit is contained in:
Jan Prochazka
2021-04-08 09:11:07 +02:00
parent d3a019e8a3
commit bb3dad6e1c
2 changed files with 31 additions and 16 deletions

View File

@@ -51,6 +51,8 @@
loadData();
});
registerMenu({ placeTag: 'switch' });
const menu = getContextMenu();
$: grider = new ChangeSetGrider(loadedRows, changeSetState, dispatchChangeSet, display);
@@ -58,7 +60,7 @@
// $: console.log('GRIDER', grider);
</script>
<div class="flexcol flex1" use:contextMenu={[{ placeTag: 'switch' }, menu]}>
<div class="flexcol flex1" use:contextMenu={menu}>
<div class="toolbar">
<Pager bind:skip bind:limit on:load={() => display.reload()} />
</div>