Hierarchy

  • ExcelUtils

Properties

Properties

parse: ((data) => Promise<DataTable[]>)

Type declaration

    • (data): Promise<DataTable[]>
    • A utility method to parse Excel data into an array of DataTable.

      This function returns a Promise that resolves to an array of DataTable.

      Parameters

      • data: Uint8Array

      Returns Promise<DataTable[]>

      Example

       import { ExcelUtils } from '@tableau/taco-toolkit/handlers'

      export default class MyParser extends Parser<Uint8Array> {
      parse(data: Uint8Array, options: ParseOptions): DataContainer {
      const result = await ExcelUtils.parse(data)
      // result: an array of DataTable
      }
      }

Generated using TypeDoc