class Nav extends Component

Properties

$levels
$children
$type
$root
$activeClass
$dropdownClass
$liClass
$aClass
$showTitle

Methods

__construct(Page|int $parent = null, int|null $levels = null, string $type = 'nav', string|null $root = null, string|null $activeClass = null, string|null $dropdownClass = 'dropdown-container', string|null $liClass = null, string|null $aClass = null, bool $showTitle = false)

Create a new component instance.

string
aClassList(NavigationData $child)

No description

string
dropdownClassList()

No description

int|null
dropdownLevels()

No description

bool
isActive(NavigationData $child) deprecated

No description

View|string
render()

Get the view / contents that represent the component.

Details

at line 34
__construct(Page|int $parent = null, int|null $levels = null, string $type = 'nav', string|null $root = null, string|null $activeClass = null, string|null $dropdownClass = 'dropdown-container', string|null $liClass = null, string|null $aClass = null, bool $showTitle = false)

Create a new component instance.

Parameters

Page|int $parent
int|null $levels
string $type
string|null $root
string|null $activeClass
string|null $dropdownClass
string|null $liClass
string|null $aClass
bool $showTitle

at line 55
string aClassList(NavigationData $child)

Parameters

NavigationData $child

Return Value

string

at line 63
string dropdownClassList()

Return Value

string

at line 71
int|null dropdownLevels()

Return Value

int|null

at line 81
bool isActive(NavigationData $child) deprecated

deprecated v3.1.5 This is no longer needed, as the active status can be checked on the NavigationData object directly

Parameters

NavigationData $child

Return Value

bool

at line 91
View|string render()

Get the view / contents that represent the component.

Return Value

View|string