Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Implements

  • OnChanges

Index

Constructors

Properties

_id: string | number

ID for the id html attribute

_internalId: string | number = ...
_open: boolean = false

The open value can be set by the user as an @Input value or when a user, using the keyboard, navigates to a menu item that has children.

cdr: ChangeDetectorRef
currentPanelEmitter: EventEmitter<LinqMultiLevelMenuItem> = ...
favorites: BehaviorSubject<LinqMultiLevelMenuItem[]> = ...
hovered: BehaviorSubject<boolean> = ...
hoveredIntervalId: any
hoveredLock: boolean = false
intl: LinqIntl
menuContainer: ElementRef<HTMLDivElement>
menuItem: TemplateRef<any>
minHeight: number = 0
mobile: BehaviorSubject<boolean> = ...
navAriaLabel: string = ...
navWrapper: ElementRef<HTMLElement>
openChangeEmitter: EventEmitter<boolean> = ...
openSub: BehaviorSubject<boolean> = ...
panels: BehaviorSubject<LinqMultiLevelMenuItem[]> = ...
router: Router
searchInput: FormControl<string> = ...
searchRef: ElementRef<HTMLInputElement>
searchedItems: LinqMultiLevelMenuItems = []
subMenuTemplate: TemplateRef<any>
subscriptions: Subscription[] = []

Accessors

  • get id(): string | number
  • set id(value: string | number): void
  • Returns string | number

  • Parameters

    • value: string | number

    Returns void

  • Returns LinqMultiLevelMenuItems

  • Parameters

    Returns void

  • get open(): boolean
  • set open(value: boolean): void
  • Returns boolean

  • Parameters

    • value: boolean

    Returns void

  • Returns Partial<LinqMultiLevelMenuOptions>

  • Parameters

    Returns void

Methods

  • The function closes the panel passed in. If there are no more panels, reset to default state.

    Parameters

    Returns void

  • focusOnSearch(event: any): void
  • The function focus on the search input when the user clicks on the search icon. The function clears the search input when the user clicks on the search icon. The function opens the menu when the user clicks on the search icon. The function clears the panels when the user clicks on the search icon, if the menu was closed.

    Parameters

    • event: any

    Returns void

  • handleItemSelected(item: any): void
  • When clicking an item the menu should close, but if the user is on part of the hover trigger it will cause the menu to reopen. This function will lock the hover for 1 second to give the user time to move their mouse away. Not perfect but it works.

    Parameters

    • item: any

    Returns void

  • handleItemUpdated(item: any): void
  • Update the items when an item is updated. Triggered by child elements.

    Parameters

    • item: any

    Returns void

  • hoverWhenClosed(enter?: boolean): void
  • If the mouse enters and the panel is open then do nothing. If the mouse enters and the panel is closed then open the menu. If the mouse leaves and panels are active is open then removal all panels, reset to default state. If the search input has a value and the mouse leaves then clear the search value, reset to default state.

    Parameters

    • enter: boolean = false

      MouseEnter or MouseLeave

    Returns void

  • The function renders a panel based on the item passed in. Will remove all previous panels.

    Parameters

    Returns void

  • manageEscapeKey(): void
  • Returns void

  • manageFavoriteSubscription(): void
  • Manage the favorite subscriptions. Subscribe to the favorites action and update the items based on the action.

    Returns void

  • manageMinHeight(focus: any): void
  • If the search menu is in focus, set the min height to the height of the menu. If the search menu is not in focus and the search input is empty, set the min height to 0. Use to avoid the menu jumping when the search results are shorter than the menu.

    Parameters

    • focus: any

      Boolean

    Returns void

  • manageSearchSubscriptions(): void
  • Manage the search subscriptions. Subscribe to the search input value changes and filter the items based on the search value.

    Returns void

  • manageSelectedSubscription(): void
  • ngOnChanges(changes: SimpleChanges): void
  • Parameters

    • changes: SimpleChanges

    Returns void

  • ngOnDestroy(): void
  • panelAnimationDoneEvent(event: any): void
  • When the animation is complete focus on the button.

    Parameters

    • event: any

    Returns void

  • panelAnimationStartEvent(): void
  • When the animation starts blur the active element.

    Returns void

  • The function adds a new item to the panels array. If the item is the top level parent close all panels and reset to default state. Set the selected value to the item.

    Parameters

    Returns void

  • resetMenuState(): void
  • Returns void

  • setSelectedByRoute(): void

Generated using TypeDoc