aitomic-m-nav-header

2.0.0 • Public • Published

A template of macro {control} to display site navigation. Import {latte} block from the template stored in folder 'control' to 'menuControl.latte' before condition of variable $menuDepth using macro {import '../path-to-latte-template'} and declare this block as {include #m-nav-header}. There are available hooks to customization CSS classes of list, item and link.

The variable 'submenu' has options 'm-nav-dropdown' and 'm-nav-mega' representing style of submenu.

{import '../path-to-latte-template'}

{include #m-nav-header,  submenu => 'm-nav-dropdown', menuClass => '...', itemClass => '...', linkClass => '...'}

Do not forget set CSS property position: relative to one of parent elements, which define megamenu width.

Readme

Keywords

none

Package Sidebar

Install

npm i aitomic-m-nav-header

Weekly Downloads

7

Version

2.0.0

License

SEE LICENSE IN license.txt

Unpacked Size

12.1 kB

Total Files

12

Last publish

Collaborators

  • aitom