synapse-react-client
Version:
[](https://badge.fury.io/js/synapse-react-client) [](https://github.com/prettier/prettie
30 lines • 1.29 kB
TypeScript
import { SchemaPropertiesMap } from '@/utils/jsonschema/getSchemaPropertyInfo';
import { JSONSchema7 } from 'json-schema';
import { DataSheetGridRef } from '@sage-bionetworks/react-datasheet-grid';
import '@sage-bionetworks/react-datasheet-grid/dist/style.css';
import '../../style/components/_data-grid-extra.scss';
import { SelectionWithId } from '@sage-bionetworks/react-datasheet-grid';
import { DataGridRow, Operation } from './DataGridTypes';
type DataGridProps = {
gridRef: React.RefObject<DataSheetGridRef | null>;
columnNames: string[];
columnOrder: number[];
schemaPropertiesInfo: SchemaPropertiesMap;
rowValues: DataGridRow[];
entityIsView: boolean;
jsonSchema: JSONSchema7 | undefined;
lastSelection: SelectionWithId | null;
handleChange: (newValue: DataGridRow[], operations: Operation[]) => void;
handleSelectionChange: (opts: {
selection: SelectionWithId | null;
}) => void;
onSelectedRowChange?: (rowIndex: number | null, row: DataGridRow | null) => void;
};
/**
* Component that renders a data grid/spreadsheet using react-datasheet-grid.
* @param props
* @constructor
*/
export default function DataGrid(props: DataGridProps): import("react/jsx-runtime").JSX.Element;
export {};
//# sourceMappingURL=DataGrid.d.ts.map