MCPcopy
hub / github.com/glideapps/glide-data-grid / DataEditorImpl

Function DataEditorImpl

packages/core/src/data-editor/data-editor.tsx:703–4007  ·  view source on GitHub ↗
(p, forwardedRef)

Source from the content-addressed store, hash-verified

701};
702
703const DataEditorImpl: React.ForwardRefRenderFunction<DataEditorRef, DataEditorProps> = (p, forwardedRef) => {
704 const [gridSelectionInner, setGridSelectionInner] = React.useState<GridSelection>(emptyGridSelection);
705
706 const [overlay, setOverlay] = React.useState<{
707 target: Rectangle;
708 content: GridCell;
709 theme: FullTheme;
710 initialValue: string | undefined;
711 cell: Item;
712 highlight: boolean;
713 forceEditMode: boolean;
714 }>();
715 const searchInputRef = React.useRef<HTMLInputElement | null>(null);
716 const canvasRef = React.useRef<HTMLCanvasElement | null>(null);
717 const [mouseState, setMouseState] = React.useState<MouseState>();
718 const scrollRef = React.useRef<HTMLDivElement | null>(null);
719 const lastSent = React.useRef<[number, number]>();
720
721 const safeWindow = typeof window === "undefined" ? null : window;
722
723 const {
724 imageEditorOverride,
725 getRowThemeOverride,
726 markdownDivCreateNode,
727 width,
728 height,
729 columns: columnsIn,
730 rows,
731 getCellContent,
732 onCellClicked,
733 onCellActivated,
734 onFillPattern,
735 onFinishedEditing,
736 coercePasteValue,
737 drawHeader: drawHeaderIn,
738 drawCell: drawCellIn,
739 editorBloom,
740 onHeaderClicked,
741 onColumnProposeMove,
742 spanRangeBehavior = "default",
743 onGroupHeaderClicked,
744 onCellContextMenu,
745 className,
746 onHeaderContextMenu,
747 getCellsForSelection: getCellsForSelectionIn,
748 onGroupHeaderContextMenu,
749 onGroupHeaderRenamed,
750 onCellEdited,
751 onCellsEdited,
752 onSearchResultsChanged: onSearchResultsChangedIn,
753 searchResults,
754 onSearchValueChange,
755 searchValue,
756 onKeyDown: onKeyDownIn,
757 onKeyUp: onKeyUpIn,
758 keybindings: keybindingsIn,
759 editOnType = true,
760 onRowAppended,

Callers

nothing calls this directly

Calls 15

useRemAdjusterFunction · 0.85
shiftSelectionFunction · 0.85
useCellsForSelectionFunction · 0.85
expandSelectionFunction · 0.85
whenDefinedFunction · 0.85
useSelectionBehaviorFunction · 0.85
mergeAndRealizeThemeFunction · 0.85
getDataEditorThemeFunction · 0.85
useColumnSizerFunction · 0.85
withAlphaFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…