Remove columns configurator usage to project-explorer, use provided keys when mapping...
[arvados-workbench2.git] / src / components / data-explorer / column.ts
index bbbc6ef9303139748537d35c2e140c784122c036..53ac7b001f412fa4288c7114f38d1c7459007158 100644 (file)
@@ -5,5 +5,12 @@
 export interface Column<T> {
     header: string;
     selected: boolean;
+    configurable?: boolean;
+    key?: React.Key;
     render: (item: T) => React.ReactElement<void>;
-}
\ No newline at end of file
+    renderHeader?: () => React.ReactElement<void>;
+}
+
+export const isColumnConfigurable = <T>(column: Column<T>) => {
+    return column.configurable === undefined || column.configurable === true;
+};
\ No newline at end of file