Build vertical spacers
Vertical spacers are layout components. You insert them into cells to add blank space between components. For example, between rows, or as padding above and below text or image components. Vertical spacers cannot contain components.
An example of rows with vertical spacers is shown in the following image.
Prerequisitesβ
You can add vertical spacer components to cell components. For information, see Build cell components.
Default template JSON samplesβ
In the Appdirect Template_EN_US default template, see the following:
- Lines 1058-1064 for an example of a vertical spacer that provides padding above text.
- Lines 204-385 in the following image for an example of a vertical spacer between rows.
To download the default template
π Note: If the AppDirect logo appears in the upper-left corner of the page, when Manage > Marketplace appears in this topic, click the grid icon > Switch to | Store, instead.
- Go to Manage > Marketlace > Settings > Invoice templates > Appdirect Template_EN_US | Gear icon | Download JSON.
Vertical spacer component JSON schemaβ
{
"type": "verticalSpacer",
"properties": {
"visible": <true | false>
},
"thickness": "<value in px/em/mm/pt/in>"
}
Elements to populate vertical spacer componentsβ
Element | Type | Description | ||
---|---|---|---|---|
verticalSpacer | object | Defines styles and behaviors for vertical spacer components. | ||
type | string | Required. Defines the component type as vertical spacer. Valid values: verticalSpacer | ||
thickness | string | Required. Defines spacer height as a dimension in pixels, ems, millimeters, points, or inches. Format: [0-9]+(px|em|mm|pt|in) Example: 40px | ||
properties | object | Required. Define visibility. | ||
visible | boolean | Required. Defines whether component appears on invoices. Valid values: true | false |
Was this page helpful?
Tell us moreβ¦
Help us improve our content. Responses are anonymous.
Thanks
We appreciate your feedback!