Skip to main content
Version: Next

DataDownloadToolbarProps

Extends

Properties

addSketchName?

optional addSketchName: boolean;

Add sketch name to filename, default to true

Inherited from

DataDownloadProps.addSketchName


addTimestamp?

optional addTimestamp: boolean;

Add timestamp to filename, defaults to true

Inherited from

DataDownloadProps.addTimestamp


data

data: object[];

Raw data to format and allow to download, nested objects and arrays will get flattened

Inherited from

DataDownloadProps.data


filename?

optional filename: string;

Name minus extension

Inherited from

DataDownloadProps.filename


formats?

optional formats: ("json" | "csv")[];

Formats to offer, defaults to csv only

Inherited from

DataDownloadProps.formats


offset?

optional offset: object;

horizontal

horizontal: number;

vertical

vertical: number;

Inherited from

DataDownloadProps.offset


placement?

optional placement: Placement;

Inherited from

DataDownloadProps.placement


style?

optional style: CSSProperties;

Inherited from

Omit.style


title

title: string;

titleAlign?

optional titleAlign: 
| "center"
| "stretch"
| "flex-end"
| "flex-start"
| "baseline";

Inherited from

Omit.titleAlign


titleElement?

optional titleElement: Element;

Inherited from

DataDownloadProps.titleElement


useGutters?

optional useGutters: boolean;

Inherited from

Omit.useGutters


variant?

optional variant: "min" | "dense" | "regular";

defaults to regular height, dense is smaller height, min is height of toolbar items

Inherited from

Omit.variant