Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

Properties

_id: string | number

ID for the id html attribute

_internalId: string | number = ...
cdr: ChangeDetectorRef
favorites: BehaviorSubject<LinqMultiLevelMenuItem[]> = ...
intl: LinqIntl
menuItem: TemplateRef<any>
minHeight: number = 0
navAriaLabel: string = ...
navWrapper: ElementRef<HTMLElement>
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

  • Returns Partial<LinqMultiLevelMenuOptions>

  • Parameters

    Returns void

Methods

  • handleItemSelected(item: any): void
  • Set the selected item when an item is selected. Update the menu service. Set the parent selected value.

    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

  • handleMenuToggle(item: any, favorites?: boolean): void
  • If the option is set to accordion: true only allow one item to be open at a time When an item is closed make sure to close all the children items If the option is set to accordion false allow multiple items to be open at a time

    Parameters

    • item: any

      LinqMultiLevelMenuItem

    • favorites: boolean = false

    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
  • ngOnDestroy(): void
  • setSelectedByRoute(): void

Generated using TypeDoc