npm.io
2.0.0 • Published 1 year ago

aitomic-m-nav-dropdown

Licence
SEE LICENSE IN license.txt
Version
2.0.0
Deps
1
Size
10 kB
Vulns
0
Weekly
0

A template of submenu. Import {latte} block from the template stored in folder 'control' to 'menuControl.latte' under condition of variable $menuDepth using macro {import '../path-to-latte-template'}, declare this block as {include #m-nav-dropdown} and add CSS class representing property position: relative to parent element of submenu selector. There are available hooks to customization CSS classes of list, item and link:

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

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