Create a new Space every time Flatfile is opened
development
environment.
public
and
src
.
The public
directory contains the index.html
file, which is the entry point
of the application’s front-end, and the styles.css
file for styling the
iframe.
The src
directory contains the main components and logic of the application,
including the blueprint.js
file, which defines your Blueprint.
publishableKey
and a new
Space will be created on each page load. Also, add the content here to your
styles.css
.
index.html
in a browser. You should see that Flatfile opens on page
load and an empty Space gets created.
blueprint.js
with this simple Blueprint.index.html
to import the Workbook.onSubmit
.
Once you add this code, when the submit button is clicked, this will be the
place you can egress your data. Learn more about
Egress Out
onRecordHook
,
Once you add this code, when a change occurs, we'll log the entered first name
and update the last name to "Rock." You'll immediately see this begin to work
when you add or update any records. Learn more about
Handling Data
themeConfig
, we will now override colors in your Space to match
your brand. See all of the options here in the
Theming Reference.