You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

aitomic-m-nav-header

Package Overview
Dependencies
Maintainers
0
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aitomic-m-nav-header

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 thi

2.0.0
latest
npmnpm
Version published
Weekly downloads
9
50%
Maintainers
0
Weekly downloads
 
Created
Source

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.

FAQs

Package last updated on 14 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts