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.
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
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
manageTemplateRef(): void
Map the templateRef to the item id.
If the item has children, add the children to the templateRefs recursively.
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.