From f63db2fb4faba59a08d3088813c97ce58098a9cf Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Fri, 18 Feb 2022 20:15:47 +0000 Subject: [PATCH] Add configuration options for table cell customisation to the table component --- .../ColumnEditor/ColumnDrawer.svelte | 46 +++++++++++++++++-- 1 file changed, 43 insertions(+), 3 deletions(-) diff --git a/packages/builder/src/components/design/PropertiesPanel/PropertyControls/ColumnEditor/ColumnDrawer.svelte b/packages/builder/src/components/design/PropertiesPanel/PropertyControls/ColumnEditor/ColumnDrawer.svelte index 1524459d57..42b911e2fd 100644 --- a/packages/builder/src/components/design/PropertiesPanel/PropertyControls/ColumnEditor/ColumnDrawer.svelte +++ b/packages/builder/src/components/design/PropertiesPanel/PropertyControls/ColumnEditor/ColumnDrawer.svelte @@ -8,10 +8,12 @@ Select, Label, Body, + ColorPicker, } from "@budibase/bbui" import { flip } from "svelte/animate" import { dndzone } from "svelte-dnd-action" import { generate } from "shortid" + import { store } from "builderStore" export let columns = [] export let options = [] @@ -91,6 +93,14 @@ + + +
+ +
+
+ +
+ +
+ (column.background = e.detail)} + alignRight + spectrumTheme={$store.theme} + /> +
+
+ (column.color = e.detail)} + alignRight + spectrumTheme={$store.theme} + /> +
You can manually control which columns are included in your table, - and their widths, by adding them below. + and their appearance, by adding them below.
@@ -163,7 +199,7 @@