Advanced
See the less commonly used shared properties for embedded Flatfile.
Reusing Spaces
During the configuration of embedded Flatfile, you have the flexibility to either reuse an existing Space or generate a new one. These properties come into play when you’re working with an already established Space.
space
Using your secret key, you’ll make a request to a server endpoint to retrieve
an accessToken
.
Overrides
mountElement
The element Flatfile will mount to. (Will create if it doesn’t already exist.)
loading
A default loading state when the Space is loading. Optionally, you can override the default Loading component.
exitTitle
The title on the dialog that appears when exiting out of Flatfile.
exitText
The text on the dialog that appears when exiting out of Flatfile.
Default: “Are you sure you would like to close this window? This will end your current data import session.”
exitPrimaryButtonText
The text on the dialog primary button that appears when exiting out of Flatfile.
exitSecondaryButtonText
The text on the dialog secondary button that appears when exiting out of Flatfile.
errorTitle
The title on the dialog that appears when an unexpected error occurs when loading Flatfile. Note: the error dialog will also include error details regarding the error that occurred.
iframe styles
Theming within the Flatfile application is done in an event listener.
The CSS here is for styling how you want things to look outside of the Flatfile iframe, like the exit dialog, the error container, and the dialog wrapper. This css can go in your style.css
in your public
folder. Remember to use !important
to override values.
On Premises
For customers hosting on-premises, the following variables apply.
apiUrl
The endpoint used to interact with the Flatfile API
spaceUrl
The URL for accessing the Flatfile Spaces API.