{ if (selectedMode == mode) { return true } //Get the current mode value const editorValue = usingJS ? decodeJSBinding(jsValue) : hbsValue if (editorValue) { targetMode = selectedMode return false } return true }} >
{#if targetMode}
{`Switch to ${targetMode}?`} This will discard anything in your binding
{/if}
{#if sidebar}
{/if}
{#if allowJS}
{#if targetMode}
{`Switch to ${targetMode}?`} This will discard anything in your binding
{/if}
{#if sidebar}
{/if}
{/if}
{#if typeof drawerActions?.hide === "function" && drawerActions?.headless} {/if} {#if typeof bindingDrawerActions?.save === "function" && drawerActions?.headless} {/if}