Ask or search…
K
Links

How it works

Overview

When the builder starts, you can feed to it multiple lists of custom rows, which will display in the rows selector:
Each list is an array of objects (JSON) describing the rows and must be returned by a URL that the builder will call when the user selects its name. These objects may be Saved Rows or Simplified Rows (a JSON schema that allows you to generate rows from existing contents through an API).
When the user selects the list name, the builder will call the given URL to retrieve the rows and display them:
If the URL is not available, a warning message will be displayed in the bottom right, and the builder will display the next set of rows or fallback to empty rows or default rows(depending on your configuration):

List limits

There is no limit to the number of rows passed to the builder in each array of custom rows.
However, the builder UI will only display the first 30 items (i.e., the first 30 rows in the array).
The rest of them will not show until the user performs a search that matches them. If the search matches over 30 items, the first 30 are displayed.
This filtering is applied to prevent performance degradation in the browser.
The search field allows users to narrow down the content shown after they select a list of custom rows.
The search is performed against all elements of the array (i.e., both visible and hidden), and the first 30 items (i.e., the first 30 rows in the array that match the search criteria) are shown.
All textual content included in the selected array – including image file names – is used to find a match.

Rows configuration

Defines the usage of custom rows in the beeConfig object when you start the builder:
rowsConfiguration: {
emptyRows: true,
defaultRows: true,
externalContentURLs: [{
name: "Rows list 01",
value: "https://URL-01"
},{
name: "Rows list 02",
value: "https://URL-02"
}]
},

Parameters

emptyRows

Set of empty rows. The same rows available when no rowsConfiguration is included.
Allowed values: true / false
Default value: true
Will always be included as the last element if omitted in the configuration.
They are presented as follows in the builder’s default theme (the screenshot shows the first 4 empty rows):

defaultRows

A set of rows that contain sample contents. That’s why we also call them sample rows. They may be used as a supporting feature for starting templates or to speed up the process of building a message from scratch.
Allowed values: true / false
Default value: false
They are presented as follows in the builder’s default theme (the screenshot shows the first 2 default rows):

externalContentURLs

Each item in this list defines an option available in the Rows drop-down.
name: the text displayed in the Rows drop-down
value: URL that will be called by the builder when the user selects the corresponding name in the drop-down. The URL must return a set of rows as a JSON object.
Here is an example of how the Rows drop-down looks when the application configuration includes:

Display order

The order of the JSON nodes in rowsConfiguration defines the order in which the lists of custom rows will display in the drop-down. It also determines which list of rows will be used as default (selected) when the user clicks on the Rows tab for the first time during the session.

Row type order

The first ordering factor refers to the type of row (empty, default, custom). That’s defined by how the following parameters are listed in rowsConfiguration:
  • emptyRows
  • defaultRows
  • externalContentURLs
So obtain the order shown in this screenshot…
… you would list defaultRows before emptyRows:
  • defaultRows
  • emptyRows
  • externalContentURLs

External content order

The order inside the externalContentURLs node defines the order of the Custom rows.
In the above example configuration:
  1. 1.
    emptyRows will be the first item in the drop-down and the default selection when clicking on the Rows tab
  2. 2.
    defaultRows will be the second item in the drop-down
  3. 3.
    The lists of rows defined in externalContentURLs will follow their ordering in the drop-down
It’s up to you – the host application – to decide what’s available and in which order.

Row type requirements

  • emptyRows and defaultRows are not required
  • this allows you to load just Custom rows, if needed, controlling which content users can drag and drop into the builder