Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • MenuItemComponent

Implements

  • AfterViewInit
  • OnChanges

Index

Constructors

Properties

buttonTemplate: TemplateRef<any>
cdr: ChangeDetectorRef
externalRedirect: TemplateRef<any>
intl: LinqIntl
isFavorite: boolean = false
itemSelected: EventEmitter<LinqMultiLevelMenuItem> = ...
itemUpdated: EventEmitter<LinqMultiLevelMenuItem> = ...
level: number
linkTemplate: TemplateRef<any>
plainText: TemplateRef<any>
sectionHeading: TemplateRef<any>
templateRefs: {} = {}

Type declaration

tooltipDisabled: boolean = true

Methods

  • The function to get the templateRef for the item. If the item has an externalRedirect, return the externalRedirect templateRef. If the item has a displayType of heading, return the sectionHeading templateRef. If the item has no link or onSelected, return the plainText templateRef. If the item has a link, return the link templateRef. If the item has an onSelected, return the button templateRef.

    Parameters

    Returns LinqMultiLevelMenuTemplateRefs

  • handleFauxInteractive(event: any, item: any): void
  • When an item with the onSelect property is active and the user hits the enter key, process the action as if the user clicked the item.

    Parameters

    • event: any

      Event

    • item: any

      LinqMultiLevelMenuItem

    Returns void

  • handleFavoriteItemToggle(event: any, item: any): void
  • The function to handle the favorite item toggle. If the item is already a favorite, remove it from the favorites. If the item is not a favorite, add it to the favorites.

    Parameters

    • event: any

      Event

    • item: any

      LinqMultiLevelMenuItem

    Returns void

  • handleSelected(item: any): void
  • Trigger the onSelected function if it exists. Remove the templateRef property from the item before emitting the item to the service.

    Parameters

    • item: any

      LinqMultiLevelMenuItem

    Returns void

  • manageTemplateRef(): void
  • Map the templateRef to the item id. If the item has children, add the children to the templateRefs recursively.

    Returns void

  • ngAfterViewInit(): void
  • Returns void

  • ngOnChanges(changes: SimpleChanges): void
  • Parameters

    • changes: SimpleChanges

    Returns void

Generated using TypeDoc