Constructor
new MenuItem(props)
Instantiates a new MenuItem
Parameters:
Name | Type | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
props |
object |
Properties to initialize the menu item with. Properties
|
Members
description :string
The displayed text of a menu item.
method :string
The HTTP method called when the menu item is selected.
path :string
The path called when the menu item is selected.
textSearch :string
Field to add more context for searching in options.
(readonly) type :string
The type of the menu item (content
or option
).
Methods
(static) fromTag(tag) → {MenuItem}
Creates a MenuItem from a SectionTag's child
Parameters:
Name | Type | Description |
---|---|---|
tag |
LiTag | BrTag | PTag | LabelTag | InputTag | string |