array subTable

This commit is contained in:
shamsmosowi
2023-04-24 23:30:57 +02:00
parent 8cc9d90724
commit cbabc8d0c2
2 changed files with 4 additions and 5 deletions

View File

@@ -12,17 +12,17 @@ const SideDrawerField = lazy(
)
);
const Settings = lazy(
() => import("./Settings" /* webpackChunkName: "Settings-ArraySubtable" */)
() => import("./Settings" /* webpackChunkName: "Settings-ArraySubTable" */)
);
export const config: IFieldConfig = {
type: FieldType.arraySubTable,
name: "Array-Sub-Table",
name: "Array SubTable (Alpha)",
group: "Connection",
dataType: "undefined",
initialValue: null,
icon: <ArraySubTableIcon />,
settings: Settings,
description: "Connects to a array-table in the current row.",
description: "A sub-table representing an array of objects in the row",
TableCell: withRenderTableCell(DisplayCell, null, "focus", {
usesRowData: true,
disablePadding: true,

View File

@@ -1,5 +1,4 @@
import { lazy } from "react";
import { GeoPoint } from "firebase/firestore";
import { IFieldConfig, FieldType } from "@src/components/fields/types";
import withRenderTableCell from "@src/components/Table/TableCell/withRenderTableCell";
@@ -15,7 +14,7 @@ const SideDrawerField = lazy(
export const config: IFieldConfig = {
type: FieldType.geoPoint,
name: "GeoPoint (Alpha)",
name: "GeoPoint",
group: "Numeric",
dataType: "{latitude:number; longitude:number}",
initialValue: {},