View as Markdown

API reference

@salmonui/data-grid/engine/export

65 exported symbols: 15 functions, 40 interfaces, 9 types and 1 constant. Each name links its page with the signature, docs and members.

import { … } from '@salmonui/data-grid/engine/export';

Functions

  • createChildExportEngineA headless child engine over a descriptor (local child sources are read synchronously).
  • createExportModelcreateExportModel(engine, options): the export model of an engine with the export module.
  • createExportModelFromContextBuilds the export model from a module context. For renderers that load the export code on demand: they register a context-only module up front (no export code…
  • createExportModuleCreates the export module: engine.export.getModel(options).
  • escapeCsvFormulaPrefixes ' to formula-like text; a numeric value whose text reads as a number stays as is.
  • exportCsvExports a grid (an engine with the export module, or a model) as CSV text.
  • exportFileNameFile name with the format extension (default export).
  • hierarchyExportDetailThe detail hook of a grid's hierarchy: a nested child-grid model per parent row by mode, or undefined when mode is none. user (the export's own detail hook) ru…
  • isExportCapableEngineTrue for an engine with the export module (as opposed to a prebuilt model).
  • resolveExportModelResolves an export source to a model.
  • runBeforeExportRaises onBeforeExport; true when the export may proceed.
  • runExportRuns one export: onBeforeExport, the model from the source and options, the writer, then onExport. Resolves to null when prevented.
  • streamCsvStreams the model as CSV chunks. Each chunk is complete lines; chunks end at chunkRows rows or after sliceMs, then the iterator awaits yield before producing t…
  • toExportModelOptionsMaps public export options and bound hooks to export model options.
  • writeCsvWrites the whole model as one CSV string.

Interfaces

Types

Constants

  • isFormulaTextWhether a spreadsheet could read this text as a formula.