日本語
@eightkk/vue-weave / core / renderTreeGridSvg
Function: renderTreeGridSvg()
renderTreeGridSvg<
R>(rows,columns,options?):string
Defined in: src/core/exportGridSvg.ts:119
Build a standalone SVG document of a tree grid with the default TreeGrid rendering: the header (with ▲ or ▼ on sorted columns and ⏷ on filtered ones), the tree column with indentation, expand glyphs, labels, details and the status lines of children not loaded, and the cells with their text (treeGridCellText), alignment, tone and state marks. Every displayed line is drawn (all rows with the default expandedIds: 'all'); rowRange and columnRange narrow it. Validates like createTreeGridIndex (and projectTreeGridRows with sort or filters) and throws a RangeError for invalid sizes, ranges or colours. Runs without a DOM.
Type Parameters
R
R extends TreeGridRow<unknown>
Parameters
rows
readonly R[]
columns
readonly TreeGridColumn<R>[]
options?
TreeGridSvgOptions<R> = {}
Returns
string