interface Props { /** * The data to be displayed in the table. An array of objects: one object per row, and one field per column. */ data: any[]; /** * Specification for how the table should be displayed. */ tableSpec: any; /** * Title to be displayed above the table (optional). */ title?: string; /** * Subtitle to be displayed above the table, below the main title (optional). */ subTitle?: string; /** * What appears in the footer: * * * `byline` (string) - statement of who created the visualization * * `source` (string) - statement of where the data came from * * `note` (string) - any additional footnotes */ source?: string; byline?: string; note?: string; /** * Data Download Button in the footer * * Defaults to `true` which allows user to select download in either 'CSV' or 'JSON' format. * Supply a custom list of formats as an array of strings. Current options either 'CSV', or 'JSON'. * If set to `false`, then the button is hidden. * */ dataDownloadButton?: true | false | ('CSV' | 'JSON')[]; /** * Image Download Button in the footer * * Defaults to true which allows user to select download in either 'PNG' or 'SVG' format. * Supply a custom list of formats as an array of strings. Current options either 'PNG', or 'SVG'. * If set to `false`, then the button is hidden. * */ imageDownloadButton?: true | false | ('PNG' | 'SVG')[]; /** * The file name to be used for the downloaded data or image file. */ filename?: string; /** * Height of the table (pixels). */ height?: number; /** * Exposes the internal table object, so that it can be programmatically manipulated. */ /** * If `true`, then rows of the table will alternate in color, making it easier to see which cells are on the same row. */ zebraStripe?: boolean; /** * If true, then the rows of the table will be split across multiple pages. Cannot be used at the same time as `virtualise`. */ paginate?: boolean; /** * If true, then the rows of the table will be virtualised. Cannot be used at the same time as `paginate`. */ virtualise?: boolean; /** * The number of table rows to include on each page. */ pageSize?: number; /** * If `true`, then user can control the number of rows per page. */ allowPageSizeChanges?: boolean; /** * The current page (1-indexed). */ page?: number; /** * If `true`, then display controls allowing user to group rows (and order groups). */ allowRowGrouping?: boolean; /** * If `true`, then display controls allowing user to select which columns are displayed. */ allowColumnHiding?: boolean; /** * If `true`, then allow user to sort rows by interacting with column headings. */ allowSorting?: boolean; /** * An optional object defining a mapping from the names of attributes in the `data` prop to the names of columns in the downloaded file. */ columnMapping?: undefined | { [oldName: string]: string; }; /** * An (optional) fixed width in pixels. If not set, the table will expand to fill the width of its parent container. */ fixedTableWidth?: number | undefined; beforeTable?: import('svelte').Snippet; } declare const Table: import("svelte").Component; type Table = ReturnType; export default Table; //# sourceMappingURL=Table.svelte.d.ts.map