Reference
A list of all component properties that can be used to configure and customize the importOK wizard.
title
Description | Primary text to be displayed at the top of the wizard, across all steps. |
---|---|
Type | string |
Default | Import |
subtitles
Description | Secondary text to be displayed at each wizard step. |
---|---|
Type | string[] |
Default | [ 'Upload your file to get started', 'Match source to target columns', 'Review validation errors and fix your data', 'Please do not close this window during the import process.', ] |
fields
Description | Fields to be mapped. Please refer to Fields for more details. |
---|---|
Type | { [key: string]: ImportField; } |
Default | {} |
transformers
Description | Custom transformers. Please refer to Transformers for more details. |
---|---|
Type | { [key: string]: (record: ImportRecord, key: string, ...args: string[]); } |
Default | {} |
validators
Description | Custom validators. Please refer to Validators for more details. |
---|---|
Type | { [key: string]: (record: ImportRecord, key: string, ...args: string[]); } |
Default | {} |
providers
Description | Custom providers. Please refer to Data providers for more details. |
---|---|
Type | { [key: string]: DataProvider; } |
Default | {} |
mapper
Description | Custom mapping strategy. Please refer to Mapping strategy for more details. |
---|---|
Type | MapperStrategy |
Default | LevenshteinMappingStrategy |
style
Description | Custom CSS rules. Please refer to Styling for more details. |
---|---|
Type | string |
Default | undefined |
locale
Description | The locale to use. Please refer to Internalization for more details. |
---|---|
Type | string |
Default | en |
translations
Description | Provide additional translations, or overwrite the existing ones. Please refer to Internalization for more details. |
---|---|
Type | { [key: string]: { [key: string]: string } } |
sampleFile
Description | Example file that can be download in the first step as an example. |
---|---|
Type | string |
Default | '' |
uploadedFile
Description | Raw file to be imported. Useful if your application already offers an upload area. Please refer to Upload Files for more details. |
---|---|
Type | File |
Default | undefined |
throttle
Description | Throttle the import process - applicable when used with onRecordReady |
---|---|
Type | number |
Default | 0 (no throttle) |
meta
Description | Meta data to be passed to onRecordReady and onImportReady . |
---|---|
Type | object |
Default | {} |
onRecordReady
Description | Callback to import a single record. |
---|---|
Type | function(record: ImportRecord, meta: object): Promise<any> |
Event props |
|
Default | undefined |
onImportReady
Description | Callback to import multiple records at once. |
---|---|
Type | function(records: ImportRecord[], meta: object): Promise<any> |
Event props |
|
Default | undefined |
onImportProgress
Description | Triggered when the progress changes. |
---|---|
Event props |
|
onStepEnter
Description | Triggered when the user enters a new step of the wizard. |
---|---|
Event props |
|
onStepExit
Description | Triggered when the user is about to exit the current step. |
---|---|
Event props |
|