mirror of
https://github.com/rowyio/rowy.git
synced 2025-12-29 00:16:39 +01:00
31 lines
975 B
TypeScript
31 lines
975 B
TypeScript
import { lazy } from "react";
|
|
import DataArrayIcon from "@mui/icons-material/DataArray";
|
|
|
|
import { IFieldConfig, FieldType } from "@src/components/fields/types";
|
|
import withRenderTableCell from "@src/components/Table/TableCell/withRenderTableCell";
|
|
|
|
import DisplayCell from "./DisplayCell";
|
|
|
|
const SideDrawerField = lazy(
|
|
() =>
|
|
import("./SideDrawerField" /* webpackChunkName: "SideDrawerField-Array" */)
|
|
);
|
|
|
|
export const config: IFieldConfig = {
|
|
type: FieldType.array,
|
|
name: "Array",
|
|
group: "Code",
|
|
dataType: "object",
|
|
initialValue: [],
|
|
initializable: true,
|
|
icon: <DataArrayIcon />,
|
|
description:
|
|
"Connects to a sub-table in the current row. Also displays number of rows inside the sub-table. Max sub-table depth: 100.",
|
|
TableCell: withRenderTableCell(DisplayCell, SideDrawerField, "popover", {
|
|
popoverProps: { PaperProps: { sx: { p: 1, minWidth: "200px" } } },
|
|
}),
|
|
SideDrawerField,
|
|
requireConfiguration: false,
|
|
};
|
|
export default config;
|