Add sticky columns as a permanent, disabled option in hide columns buttons

This commit is contained in:
Andrew Kingston 2023-04-25 09:22:30 +01:00
parent 6ab03289c5
commit 8d21345d55
1 changed files with 5 additions and 1 deletions

View File

@ -2,7 +2,7 @@
import { getContext } from "svelte"
import { ActionButton, Popover, Toggle } from "@budibase/bbui"
const { columns } = getContext("grid")
const { columns, stickyColumn } = getContext("grid")
let open = false
let anchor
@ -55,6 +55,10 @@
<Popover bind:open {anchor} align="left">
<div class="content">
<div class="columns">
{#if $stickyColumn}
<Toggle disabled size="S" value={true} />
<span>{$stickyColumn.name}</span>
{/if}
{#each $columns as column}
<Toggle
size="S"