Row Schema
Introduction
Schemas are structured definitions that describe the format, rules, and relationships of data within a system. They ensure consistency and validate inputs. In Beefree SDK, the Simple Row Schema defines how rows are structured within the email, page, and popup builders, controlling layout, styling, and responsive behavior. This documentation breaks down the schema's properties, requirements, and usage examples to help you implement and extend row configurations effectively.
Reference the Simple Schema GitHub repository for more information.
Schema Overview
This section summarizes the purpose and key characteristics of the Simple Row Schema.
Schema Name: Simple Row
Purpose: Defines the structure of rows in Beefree's layout system, including columns, styling, and mobile behavior.
Mandatory Fields:
name
,columns
Related Schemas:
simple_column.schema.json
(nested columns)definitions.schema.json
(shared validation rules)
Structure Definition
Below is the JSON Schema definition and a detailed breakdown of each property.
JSON Schema
Field Descriptions
The following table lists the field descriptions along with their corresponding data type, whether or not they are mandatory, and their description.
name
string
Yes
The name of the row
columns
array
Yes
The columns in the row
locked
boolean
Whether the row is locked
colStackOnMobile
boolean
Whether columns stack on mobile
rowReverseColStackOnMobile
boolean
Whether columns stack in reverse on mobile
contentAreaBackgroundColor
string
The background color of the content area
background-color
string
The background color of the row
background-image
string
The background image of the row
background-position
string
The background position of the row
background-repeat
string
The background repeat property of the row
border-radius
integer
The border radius of the row (0-60)
border-color
string
The border color of the row
border-width
integer
The border width of the row (0-30)
columnsBorderRadius
integer
The border radius of the columns (0-60)
columnsSpacing
integer
The spacing between columns (0-99)
vertical-align
enum
The vertical alignment of the row
display-condition
object
The display condition of the row
padding-top
integer
The top padding of the row (0-60)
padding-right
integer
The right padding of the row (0-60)
padding-bottom
integer
The bottom padding of the row (0-60)
padding-left
integer
The left padding of the row (0-60)
customFields
object
Custom fields for the row
metadata
object
Metadata for the row
Usage Examples
Reference an example of the schema in the following code snippet.
Example Row
Additional Considerations
Consider the following when working when Simple Row Schema in Beefree SDK:
Extensibility: Use
customFields
for non-standard properties.
Last updated
Was this helpful?