Widget: Hierarchical Menu
Example
Details
How to Use: The hierarchical menu is a lot like a simplified tree. You provide it with an array of objects that represent the root elements. Each root element object has two keys, label
and children
. The label is the text on the button, children is an array of nested objects.
Each nested object must contain _either_ a children
field or a url
field. If it has children, it's rendered as a button and can expand/collapse. If it has a url, it's rendered as a link to that URL.