Create a new Space every time Flatfile is opened.
development
environment.
init
command.
parcel
for bundling.)
public
and src.
The public
directory contains the index.html
file, which is the entry point of the application’s front-end, and the “style.css” file for styling the iframe.
The src
directory contains the main components and logic of the application, including the client.js
file, which initializes Flatfile and passes in available options.
publishableKey
and a new Space will be created on each page load. Also, add the content here to your styles.css
.
client.js
, at minimum, you’ll need to receive the publishableKey
set from when you called openFlatfile
.
workbook.js
with this simple Blueprint.client.js
to import the Workbook.listener.js
with this simple recordHook
.client.js
to import the listener.themeConfig
to flatfileOptions
in src/client.js
, we will now override colors in your Space to match your brand. See all of the options here in the Theming Reference.
listener.js
with this simple submit action.