BootstrapMenu - viames/pair GitHub Wiki
Pair framework: BootstrapMenu
Pair\Html\BootstrapMenu extends Menu with Bootstrap-oriented rendering helpers.
Main behavior
Protected rendering methods:
renderDropdown(MenuEntry $entry): stringrenderSeparator(MenuEntry $entry): stringrenderSingle(MenuEntry $entry): string
Implementation example
$menu = new \Pair\Html\BootstrapMenu();
$menu->add('Home', '/');
$menu->add('Products', '/products');
echo $menu->render();
Notes
- Uses
MenuEntryobjects to represent nodes. - Designed for Bootstrap HTML class conventions.