Interface CsvImportOptions

interface CsvImportOptions {
    isDate1904System?: boolean;
    maxColumns?: number;
    maxRows?: number;
    onGetCellAt?: ((sheetName, key, cell) => void);
    papaParseConfig?: ParseConfig<any, undefined>;
    setCellOptions?: SetCellOptions;
    sharedResources?: ISharedResourceCollection;
    sheetCreator?: ((name, initialState?, options?) => ISheetModel);
    sheetNameCreator?: ((index) => string);
    sheetStyle?: ISheetStyle;
    theme?: IDocTheme;
    transactionStore?: TransactionStore;
}

Hierarchy

  • ImportWorkbookOptions
    • CsvImportOptions

Properties

isDate1904System?: boolean

Determine if dates should be 1904 instead of 1900 based

Default Value

false
maxColumns?: number

Set the maxRow size

Default Value

16384
maxRows?: number

Set the maxRow size

Default Value

1048576
onGetCellAt?: ((sheetName, key, cell) => void)

Type declaration

    • (sheetName, key, cell): void
    • Parameters

      Returns void

papaParseConfig?: ParseConfig<any, undefined>

configuration for csv import

Remarks

CSV parse delegates to the excellent Papa Parse library. All options are exposes via papParseConfig.

See

https://www.papaparse.com/docs#config

setCellOptions?: SetCellOptions
sharedResources?: ISharedResourceCollection

collection of shared resources. If not provided then workbook will create it's own.

sheetCreator?: ((name, initialState?, options?) => ISheetModel)

Hook to allow for custom sheet creation

Type declaration

Returns

ISheetModel

sheetNameCreator?: ((index) => string)

This is a function that will return a sheet name given a 1-based index.

Type declaration

    • (index): string
    • Parameters

      • index: number

      Returns string

Default Value

Sheet${index}

sheetStyle?: ISheetStyle

collection of shared styles. If not provided then workbook will create it's own.

theme?: IDocTheme
transactionStore?: TransactionStore

The store for all state changes. This is provided to enable versioning, undo/redo, distributed editing, etc.

Default Value

internal