Menu Schema
Last updated
Was this helpful?
Last updated
Was this helpful?
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 Menu Schema defines how navigation menus are configured and rendered within email, page, and popup builders. It supports lists of items with links, customizable paddings, and metadata. This documentation breaks down the schema's properties, requirements, and usage examples to help you implement and customize menu blocks effectively.
Reference the for more information.
This section summarizes the purpose and key characteristics of the Simple Menu Schema.
Schema Name: Simple Menu
Purpose: Defines navigational menu structures made of multiple text-and-link items with styling support.
Related Schemas:
definitions.schema.json
(for padding values)
Below is the JSON Schema definition and a detailed breakdown of each property.
The following tables list the field descriptions along with their corresponding data type, whether or not they are mandatory, and their description.
Level 1: simple_menu.schema.json
Properties
items
array
The menu items
padding-top
integer
The top padding (0-60)
padding-right
integer
The right padding (0-60)
padding-bottom
integer
The bottom padding (0-60)
padding-left
integer
The left padding (0-60)
locked
boolean
Whether the menu is locked
customFields
object
Custom fields for the menu
locked
boolean
Whether the module is locked Note:
Not available for single content addon
Level 2: items
Array Properties
text
string
The text of the menu item
link
object
The link object for the menu item
Level 3: link
Object Properties
title
string
The title of the link
href
string
The URL of the link
target
enum
The target of the link
Reference an example of the schema in the following code snippet.
Consider the following when working with the Simple Menu Schema in Beefree SDK:
Accessibility: Use the title
field in link
to improve accessibility for screen readers.
Responsive Design: Menu alignment and padding should be tested across devices for layout consistency.
Extensibility: Use customFields
for non-standard properties.
No
No
No
No
No
No
No
No
No
No
No
No
No