diff options
author | bobzel <zzzman@gmail.com> | 2020-08-29 11:53:43 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2020-08-29 11:53:43 -0400 |
commit | 6414d1a344c80a75c2d4fb91e3cd7126e23c4cb1 (patch) | |
tree | bf50ad57a72785a6166113f1c260583d60321386 /src/client/views/nodes/DocumentView.tsx | |
parent | 53e29fd0fcb09f443978b26dc31c37cf35241dae (diff) |
made isDisplayPanel a prop of the docking layout instead of a field on a Doc
Diffstat (limited to 'src/client/views/nodes/DocumentView.tsx')
-rw-r--r-- | src/client/views/nodes/DocumentView.tsx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx index eb6988362..6e1357b41 100644 --- a/src/client/views/nodes/DocumentView.tsx +++ b/src/client/views/nodes/DocumentView.tsx @@ -52,6 +52,7 @@ export interface DocumentViewProps { NativeHeight: () => number; Document: Doc; DataDoc?: Doc; + getView?: (view: DocumentView) => any; LayoutTemplateString?: string; LayoutTemplate?: () => Opt<Doc>; LibraryPath: Doc[]; @@ -128,6 +129,11 @@ export class DocumentView extends DocComponent<DocumentViewProps, Document>(Docu onClickFunc = () => this.onClickHandler; onDoubleClickFunc = () => this.onDoubleClickHandler; + constructor(props: any) { + super(props); + props.getView?.(this); + } + handle1PointerHoldStart = (e: Event, me: InteractionUtils.MultiTouchEvent<React.TouchEvent>): any => { this.removeMoveListeners(); this.removeEndListeners(); |