Cells are layout components. They contain an array of other components and define the location of the cells, and the components they contain, on invoice pages.
The following are characteristics of cells:
You can add cell components to body sections or row components.
In the Appdirect Template_EN_US default template, see lines 8-28.
To download the default template, go to .
Cell component JSON is shown in red text, in the following sample code. Cell components must always be contained in a row (the black text).
{ "type" : "row", "components": [ { "type":"cell", "style": {} "width": "100%" "properties": {} "components": [{ "type":" " }] } ] }
Element | Type | Description | ||
---|---|---|---|---|
cell | object | Defines styles and behaviors for cell components. Cells can contain components with content that appears on invoices. | ||
type |
string |
Required. Defines the component type as cell. Valid value: cell |
||
style | object |
Required. Defines formatting for the cell. Valid values: HTML element names and CSS styles for the named HTML element. All HTML styles. Only relevant styles that the Invoice Builder can render appear in the user interface preview and the PDF. Examples: "font-size": "9px" "font-family": "Arial" |
||
width | string |
Defines cell width as a percent of the row that contains it. When there is one cell to span the full row width, set the cell to 100%. When there is more than one cell, the cells are allocated an equal percentage of the row width. You can change default percentage widths. Valid values: Cell width as a percent of row width. Format: [0-9]+(%) Example: 100% |
||
properties | object | Required. Define visibility. | ||
visible | boolean |
Required. Defines whether component appears on invoices. Valid values: true | false |
||
components |
array |
Required. Layout and elementary components contained in the cell. See the following topics provide information on valid component types for cells: |