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.
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:
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: {} })
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, classSegment
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.
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.