Documentation
Kitchen Sink documentation of style: 'Delos' of skin: 'ILIAS'
Sub
Description
- Purpose
- Menus offer navigational options to the user. Sometimes, those options are organized in a hierarchical structure. The Submenu is an entry for Menus demarking a further level within this hierarchy.
- Composition
- A Submenu is a derivate of Menu and will be rendered alike. It holds further Submenus and/or Buttons. Also, Dividers may be used so separate entries from each other.
- Effect
- Clicking the Label of the Submenu will show the list of Entries of this Submenu.
Rules
- Usage
- A Submenu MUST be used to generate a new level in the structure of a Menu.
- Submenus MUST contain further Submenus or Buttons.
- Submenus SHOULD contain more than one entry (Submenu or Button).
- Wording
- Label and Symbol of the Submenu MUST reflect/subsume the meaning or purpose of contained entries.
Example 1: Sub
The sub-menu is actually not meant to be rendered standalone. However, it will generate a ul-tree with buttons for nodes. See Drilldown for a Example using Sub Menus
<?php declare(strict_types=1); namespace ILIAS\UI\examples\Menu\Sub; function sub() { $comment = '<p> The sub-menu is actually not meant to be rendered standalone. ' . 'However, it will generate a ul-tree with buttons for nodes. See Drilldown for a Example using Sub Menus<p/>'; return $comment; }
Relations
- Parents
- UIComponent
- Menu