File

packages/ecl/components/ecl-mega-menu/ecl-mega-menu.component.ts

Description

The 'eclMegaMenu' is an advanced navigation component designed for complex sites with deep hierarchies. It can provide descriptive text for first level items, accommodate up to three levels of navigation, and additionally allows a featured column that can be used to either promote parent-page specific or site-wide pages, hidden deep into the lower levels of the hierarchy.

Extends

ECLBaseDirective

Implements

DoCheck OnDestroy

Metadata

Index

Properties
Methods
Inputs
Outputs
HostBindings
HostListeners
Accessors

Constructor

constructor()

Inputs

class
Type : string
e2eAttr
Type : any
tabindex
Type : number

Outputs

megaMenuItemSelect
Type : EventEmitter

The event that is emitted, when a menu item is selected.

HostBindings

attr.data-expanded
Type : string
attr.role
Type : string
Default value : 'navigation'

The 'role' attribute of the component is set to 'navigation'. should not be changed.

class
Type : string

HostListeners

eclClickOutside
eclClickOutside()

When clicking outside the menu - close any expanded item.

Methods

onClickOutsideMegaMenu
onClickOutsideMegaMenu()
Decorators :
@HostListener('eclClickOutside')

When clicking outside the menu - close any expanded item.

Returns : void
onMegaMenuBack
onMegaMenuBack()

Used for mobile menu - when user clicks on 'Back' button. Returns to the previous state.

Returns : void
onMegaMenuMobileClose
onMegaMenuMobileClose()
Returns : void
onMegaMenuMobileOpen
onMegaMenuMobileOpen()
Returns : void
positionMenuOverlay
positionMenuOverlay(parentHeaderBottomSpaceY: unknown)
Parameters :
Name Type Optional
parentHeaderBottomSpaceY unknown No
Returns : void
getCssClasses
getCssClasses(rootClass: string)
Parameters :
Name Type Optional
rootClass string No
Returns : string

Properties

Public breakpointsValue
Type : any
Default value : { isMobile: false, isTablet: false, isLtDesktop: false, isDesktop: false, isXL: false, isXXL: false, }

Represents the current viewport breakpoint states.

hasSecondaryFeatured
Type : unknown
Default value : false

Adds the relative class to the component, when a submenu is opened and this submenu has a featured component child

innerStyleTop
Type : number
isExpanded
Type : unknown
Default value : false
isMobileBreakpoint
Type : unknown
Default value : false

If the menu is in mobile mode.

isMobileExpanded
Type : unknown
Default value : false

If the menu is expanded in mobile mode.

isOnePanel
Type : unknown
Default value : false

When a menu item is expanded and has only one panel (one sub-level).

isOpenMobile
Type : unknown
Default value : false

If the menu is open, when in mobile mode.

isStartPanel
Type : unknown
Default value : false

Used in mobile mode - when the start panel is open (i.e. the hamburger button is clicked).

isTwoPanels
Type : unknown
Default value : false

If a menu item is expanded and has two panels/levels displayed.

menuItems
Type : QueryList<EclMegaMenuItemComponent>
Decorators :
@ContentChildren(undefined, {descendants: true})
overlayStyleTop
Type : number

Used to position the overlay, when a menu item is expanded.

role
Type : string
Default value : 'navigation'
Decorators :
@HostBinding('attr.role')

The 'role' attribute of the component is set to 'navigation'. should not be changed.

Accessors

cssClasses
getcssClasses()
expandedAttr
getexpandedAttr()

results matching ""

    No results matching ""