UNPKG

synapse-react-client

Version:

[![npm version](https://badge.fury.io/js/synapse-react-client.svg)](https://badge.fury.io/js/synapse-react-client) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettie

39 lines 1.24 kB
import React from 'react'; import { QueryBundleRequest, QueryResultBundle, Row } from '@sage-bionetworks/synapse-types'; import { ReactNode } from 'react'; export type TopLevelControlsProps = { name?: string; hideDownload?: boolean; hideVisualizationsControl?: boolean; hideFacetFilterControl?: boolean; hideQueryCount?: boolean; hideSqlEditorControl?: boolean; customControls?: CustomControl[]; showColumnSelection?: boolean; cavaticaConnectAccountURL?: string; remount?: () => void; }; export type Control = { key: string; icon: string; tooltipText: string; }; export type CustomControlCallbackData = { tableId: string; queryMetadata: Omit<QueryResultBundle, 'queryResult'> | undefined; selectedRows: Row[] | undefined; refresh: () => void; request?: QueryBundleRequest; }; export type CustomControl = { buttonText: string; onClick: (event: CustomControlCallbackData) => void; classNames?: string; icon?: ReactNode; buttonID?: string; title?: string; description?: string; }; declare const TopLevelControls: (props: TopLevelControlsProps) => React.ReactNode; export default TopLevelControls; //# sourceMappingURL=TopLevelControls.d.ts.map