synapse-react-client
Version:
[](https://badge.fury.io/js/synapse-react-client) [](https://github.com/prettier/prettie
28 lines • 1.09 kB
TypeScript
import React from 'react';
import { EntityHeader } from '@sage-bionetworks/synapse-types';
export { type TreeNode } from './hooks/useEntityTreeState';
type EntityTreeTableProps = {
/** The Synapse ID of the root entity to display */
rootId: string;
/** Whether to expand the root node by default. Defaults to true */
expandRootByDefault?: boolean;
/** Whether to show the root node in the tree. Defaults to true */
showRootNode?: boolean;
/** Whether to enable column sorting. Defaults to true */
enableSorting?: boolean;
/** Callback when an entity is clicked. If not provided, defaults to opening Synapse.org page. */
onEntityIdClicked?: (entityId: string) => void;
};
export type EntityBundleRow = {
entityId: string;
entityHeader: EntityHeader;
depth: number;
isLeaf: boolean;
parentId?: string;
versionNumber?: number;
isLoadMore?: boolean;
pageToken?: string;
};
export declare const EntityTreeTable: React.FC<EntityTreeTableProps>;
export default EntityTreeTable;
//# sourceMappingURL=EntityTreeTable.d.ts.map