FK secondary checkbox

This commit is contained in:
Jan Prochazka
2022-08-27 15:26:11 +02:00
parent e124291267
commit 2b68a6e1de
4 changed files with 77 additions and 1 deletions

View File

@@ -52,6 +52,22 @@
}}
/>
{#if node.secondaryCheckable}
<input
type="checkbox"
checked={node.isSecondaryChecked}
on:click={e => {
e.stopPropagation();
}}
on:mousedown={e => {
e.stopPropagation();
}}
on:change={() => {
node.toggleSecondaryChecked();
}}
/>
{/if}
<FontIcon icon={node.icon} />
<span>{node.title}</span>