Options are used to customize the user’s experience beyond just branding. You might, for example, customize the page
size limit to match the rest of your application.Options are shared across all instances of the Embeddable UI.
Some of these options will be applied globally, and some will only affect a subset of the app.The global options are listed below. You can see which options are available for each Page or Component
under the relevant reference.
Setting Options
Options are accessed via the useOptions hook. Keep in mind that this must be used within a <Tight> component.
Option declaration is done using the setOptions function returned by useOptions.
This function accepts a Partial of all
possible options, and will merge any input into your already defined options. This means that both this:
are valid method of defining the same set of options.
Updating Options
Since setOptions accepts a Partial, you’re able to update a subset of your options. The code below updates the limit
on the Transactions Dashboard from 50 to 100 after a second, as an example.
Note that option merging is a shallow merge - input is only merged at the top level.
setOptions({ transactionsDashboard: { limit: 50 }, dataVisualizationColors: ["#F00", "#0F0", "#00F"],})// This will remove your previously set limit!setOptions({ transactionsDashboard: {} })
Replacing Options
If you want to update your options to be exactly what you’ve passed as input to setOptions, you can pass the
replace parameter as true.
An ordered array describing which table columns to display on the dashboard. Duplicate entries will
be ignored.A column is an object with two fields, column and width.
column is the name of the column. width is the desired pixel width of the column, and is optional.Available options: date, description, amount, category, reviewStatus, dimensionValue
number
default:25
max: 250
optional
The number of transactions to show on a single page of the Transactions Dashboard.
string[]
An array of colors (represented as a string in hexadecimal format) that define the color palette for
various graphs and diagrams across the Embeddabl e UI. This is only used for metrics that don’t
already have color associations, such as the colors for each category on the Expense Tile.
object
The options for the Banks & Integrations related functionality.
Show banksAndIntegrations
string[]
An array of integration identifiers that determines which integrations are displayed as linkable integrations. If not provided, all supported integrations are shown by default. If a user
already has an integration linked that is not included in this list, it will still be shown to the user.Supported integration identifiers: UNIT, STRIPE, GUSTO, SHOPIFY, SQUARE, RUTTER,
UBER, MOOV, QUALPAY, MANUAL_ENTRY, PARTNER_IMPLEMENTATION, QBO, XERO, FRESHBOOKS.
boolean
default:"false"
Whether or not the provided options should fully replace the currently set options. Disables option merging.
Assistant
Responses are generated using AI and may contain mistakes.