Menu

Menu

A Menu object as defined in the JSON schema. It represents a top level component that permits displaying a navigable menu or a plain text.

Constructor

Instantiates a new Menu

Parameters:
Name Type Description
props object

Properties to initialize the menu with

Properties
Name Type Attributes Description
body Array.<MenuItem>

Sets Menu#body

header string <optional>

Sets Menu#header

footer string <optional>

Sets Menu#footer

meta MenuMeta <optional>

Sets Menu#meta

Source:

Members

body :Array.<MenuItem>

The body/content of the menu.

Default Value:
  • "menu"
Source:

The footer of the menu.

Source:

The header of the menu.

Source:

meta :MenuMeta

Configuration fields for menu.

Source:

(readonly) type :string

The type of the Menu object is always "menu".

Source:

Methods

(static) fromTag(sectionTag) → {Menu}

Creates a Menu from a SectionTag

Parameters:
Name Type Description
sectionTag SectionTag
Source: