Exports data from a grid to a PNG file
png(config?: object): void;
Parameters:config
- (optional) an object with export settings. You can specify the following settings for export to PNG:
url?: string
- (optional) the url of the service that executes export and returns an exported file. This setting is optional, you should use it only if you need to specify the path to your local export service. The default value is https://export.dhtmlx.com/grid/png/8.1.0
name?: string
- (optional) the name of the exported filetheme?: string
- (optional) the exported theme, "light" by default. For custom or overridden themes, enable the exportStyles
optionexportStyles?: boolean | string[]
- (optional) defines the styles that will be sent to the export service when exporting Grid. Use false to prevent all styles from being sent to the export serviceheader?: string
- (optional) an HTML template for the header in the exported filefooter?: string
- (optional) an HTML template for the footer in the exported fileExample
// default export
grid.export.png();
// export with config settings
grid.export.png({
theme: "dark",
});
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4