diff options
| author | Tyler Schicke <tyler_schicke@brown.edu> | 2019-02-03 22:35:33 -0500 |
|---|---|---|
| committer | Tyler Schicke <tyler_schicke@brown.edu> | 2019-02-03 22:35:33 -0500 |
| commit | e6871754b90e2179a140c6f0c365b95be80e245b (patch) | |
| tree | b84d122909540036df201a93e7ec375e9f81d7e8 /src/views/nodes/DocumentView.tsx | |
| parent | 0748b6c92a0a8239596330bc0ba2054ee114a943 (diff) | |
Added preview box in schema view, added ScrollBox control,
added resizable grid layout, cleaned up some styling for collection
freeform view
Diffstat (limited to 'src/views/nodes/DocumentView.tsx')
| -rw-r--r-- | src/views/nodes/DocumentView.tsx | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/src/views/nodes/DocumentView.tsx b/src/views/nodes/DocumentView.tsx index 7f11300cc..9e8df0d79 100644 --- a/src/views/nodes/DocumentView.tsx +++ b/src/views/nodes/DocumentView.tsx @@ -52,7 +52,7 @@ interface CollectionView { } @observer -class DocumentContents extends React.Component<DocumentViewProps> { +export class DocumentContents extends React.Component<DocumentViewProps> { @computed get layout(): string { @@ -80,13 +80,15 @@ class DocumentContents extends React.Component<DocumentViewProps> { bindings[key.Name] = field.GetValue(); } } - return <JsxParser - components={{ FieldTextBox, ImageBox, CollectionFreeFormView, CollectionDockingView, CollectionSchemaView }} - bindings={bindings} - jsx={this.layout} - showWarnings={true} - onError={(test: any) => { console.log(test) }} - /> + return ( + <JsxParser + components={{ FieldTextBox, ImageBox, CollectionFreeFormView, CollectionDockingView, CollectionSchemaView }} + bindings={bindings} + jsx={this.layout} + showWarnings={true} + onError={(test: any) => { console.log(test) }} + /> + ) } } @@ -365,7 +367,6 @@ export class DocumentView extends React.Component<DocumentViewProps> { } } - render() { var freestyling = this.props.ContainingCollectionView instanceof CollectionFreeFormView; return ( |
