aitomic-m-nav-header

1.0.4 • 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

18

Version

1.0.4

License

SEE LICENSE IN license.txt

Unpacked Size

12.2 kB

Total Files

13

Last publish

Collaborators

  • aitom