aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/collectionSchema/SchemaTableCell.tsx
diff options
context:
space:
mode:
authormehekj <mehek.jethani@gmail.com>2023-02-27 17:00:49 -0500
committermehekj <mehek.jethani@gmail.com>2023-02-27 17:00:49 -0500
commit222f659b8c291fafce2648e367392dd9f467cb25 (patch)
tree2592b253f380624323285c325cf415d22ea42cbb /src/client/views/collections/collectionSchema/SchemaTableCell.tsx
parentfecf9bdf8fc6d551e4595af688179950af6ca684 (diff)
rows are documentviews but clipped
Diffstat (limited to 'src/client/views/collections/collectionSchema/SchemaTableCell.tsx')
-rw-r--r--src/client/views/collections/collectionSchema/SchemaTableCell.tsx12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/client/views/collections/collectionSchema/SchemaTableCell.tsx b/src/client/views/collections/collectionSchema/SchemaTableCell.tsx
index 5d9474173..e2f6d99f1 100644
--- a/src/client/views/collections/collectionSchema/SchemaTableCell.tsx
+++ b/src/client/views/collections/collectionSchema/SchemaTableCell.tsx
@@ -1,7 +1,14 @@
import React = require('react');
import { observer } from 'mobx-react';
-import { Doc, Field } from '../../../../fields/Doc';
+import { Doc, DocListCast, Field } from '../../../../fields/Doc';
import './CollectionSchemaView.scss';
+import { type } from 'jquery';
+import { action } from 'mobx';
+import { ComputedField } from '../../../../fields/ScriptField';
+import { FieldValue } from '../../../../fields/Types';
+import { CompileScript } from '../../../util/Scripting';
+import { EditableView } from '../../EditableView';
+import { MAX_ROW_HEIGHT } from '../../global/globalCssVariables.scss';
export interface SchemaTableCellProps {
Document: Doc;
@@ -14,7 +21,8 @@ export class SchemaTableCell extends React.Component<SchemaTableCellProps> {
render() {
return (
<div className="schema-table-cell" style={{ width: this.props.columnWidth }}>
- {Field.toString(this.props.Document[this.props.fieldKey] as Field)}
+ {/* {Field.toString(this.props.Document[this.props.fieldKey] as Field)} */}
+ <EditableView contents={Field.toString(this.props.Document[this.props.fieldKey] as Field)} GetValue={() => Field.toKeyValueString(this.props.Document, this.props.fieldKey)} SetValue={(value: string) => true} />
</div>
);
}