feat(app): able to set a parent

This commit is contained in:
Quentin Laffont
2022-11-04 10:05:17 +01:00
parent 8c051ff5f7
commit b0d61f974c
5 changed files with 53 additions and 3 deletions

View File

@@ -10,6 +10,7 @@
export let group;
export let groupFunc;
export let items;
export let groupIconFunc = plusExpandIcon;
export let module;
export let checkedObjectsStore = null;
export let disableContextMenu = false;
@@ -37,7 +38,7 @@
<div class="group" on:click={() => (isExpanded = !isExpanded)}>
<span class="expand-icon">
<FontIcon icon={plusExpandIcon(isExpanded)} />
<FontIcon icon={groupIconFunc(isExpanded)} />
</span>
{group}