NavItemDropDown
extends LiTag
in package
Description of DropDown.
Tags
Table of Contents
- $dropdownMenu : UlTag
- __construct() : mixed
- DropDown menu.
- addDropdownItem() : void
- add one DropDown item.
- finalize() : void
- handle() : ATag
- DropDown handle.
Properties
$dropdownMenu
private
UlTag
$dropdownMenu
Methods
__construct()
DropDown menu.
public
__construct(string $heading[, array<string|int, mixed> $items = [] ]) : mixed
Parameters
- $heading : string
- $items : array<string|int, mixed> = []
Return values
mixed —addDropdownItem()
add one DropDown item.
public
addDropdownItem(string $label, string $url) : void
Parameters
- $label : string
-
or empty for divider
- $url : string
Return values
void —finalize()
public
finalize() : void
Return values
void —handle()
DropDown handle.
public
handle(string $heading) : ATag
Parameters
- $heading : string