datagrid-export
Writes what a dioxus-datagrid grid shows as a file.
The table comes from datagrid_core::export_table: the visible columns in the order the grid lays
them out, the rows as sorted, filtered and grouped, every cell as a typed value and as the text the
grid shows for it. This crate only writes it, one format per feature, so that a format with heavy
dependencies costs nothing to anyone who does not ask for it.
| Feature | Format | Dependencies |
|---|---|---|
csv (default) |
CSV: RFC 4180, a semicolon or any delimiter, a byte order mark for Excel, text that would run as a formula defused | none |
html (default) |
an HTML table to print or to put in a page, every cell escaped, the header repeated on every printed sheet | none |
chrono |
dates and times written in ISO 8601 | chrono, through datagrid-core |
Excel and PDF are planned (see the roadmap) and will be features of their own.
use ;
use ;
let rows = ;
let columns = ;
let table = export_table;
assert_eq!;
License
MIT OR Apache-2.0.