aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/collectionSchema/SchemaTableCell.tsx
diff options
context:
space:
mode:
authorNathan-SR <144961007+Nathan-SR@users.noreply.github.com>2024-06-20 14:33:28 -0400
committerNathan-SR <144961007+Nathan-SR@users.noreply.github.com>2024-06-20 14:33:28 -0400
commit20128eb11d5146e9f199d04a94ca9a6b5ac109d7 (patch)
tree615c2de7f6db1eeebb065faf94d387afac36bb87 /src/client/views/collections/collectionSchema/SchemaTableCell.tsx
parentd207cf565968167c59b16baf6ca5ce2543c680ea (diff)
some progress on eq text highlighting
Diffstat (limited to 'src/client/views/collections/collectionSchema/SchemaTableCell.tsx')
-rw-r--r--src/client/views/collections/collectionSchema/SchemaTableCell.tsx6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/client/views/collections/collectionSchema/SchemaTableCell.tsx b/src/client/views/collections/collectionSchema/SchemaTableCell.tsx
index 74c001397..74ee46065 100644
--- a/src/client/views/collections/collectionSchema/SchemaTableCell.tsx
+++ b/src/client/views/collections/collectionSchema/SchemaTableCell.tsx
@@ -3,7 +3,7 @@
/* eslint-disable no-use-before-define */
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { Popup, Size, Type } from 'browndash-components';
-import { action, computed, makeObservable, observable } from 'mobx';
+import { ObservableMap, action, computed, makeObservable, observable } from 'mobx';
import { observer } from 'mobx-react';
import { extname } from 'path';
import * as React from 'react';
@@ -62,6 +62,9 @@ export interface SchemaTableCellProps {
rowSelected: () => boolean;
isolatedSelection: [boolean, boolean];
highlightCells: (text: string) => void;
+ equationHighlightRef: ObservableMap<HTMLDivElement, string>;
+ func: (text: string, raw: boolean) => HTMLDivElement[] | [];
+
}
function selectedCell(props: SchemaTableCellProps) {
@@ -179,6 +182,7 @@ export class SchemaTableCell extends ObservableReactComponent<SchemaTableCellPro
}}>
<SchemaCellField
highlightCells={this.adjustedHighlight}
+ func={this._props.func}
ref={r => selectedCell(this._props) && this._props.autoFocus && r?.setIsFocused(true)}
oneLine={this._props.oneLine}
contents={undefined}