synapse-react-client
Version:
[](https://badge.fury.io/js/synapse-react-client) [](https://github.com/prettier/prettie
21 lines • 986 B
TypeScript
import React from 'react';
import { SelectColumn } from '@sage-bionetworks/synapse-types';
import { LabelLinkConfig } from '../CardContainerLogic';
export type RowDataTableProps = {
/** Array of string values corresponding to the data for a row */
rowData: Array<string | null>;
/** The headers for the columns in the table */
headers: SelectColumn[];
/** Optional list of column names whose data should be displayed in the table. If not provided, all columns with data will be shown. */
displayedColumns?: string[];
/** Optional configuration for linking columns */
columnLinks?: LabelLinkConfig;
/** Optional display value overrides for column names */
columnAliases?: Record<string, string>;
};
/**
* Displays a table of column names and Synapse Table row data represented as key/value pairs
*/
declare const RowDataTable: (props: RowDataTableProps) => React.ReactNode;
export default RowDataTable;
//# sourceMappingURL=RowDataTable.d.ts.map