Options
All
  • Public
  • Public/Protected
  • All
Menu

Module components/multi-level-menu/multi-level-menu.utils

Index

Functions

  • closeAllExcept(item: any, items: any): void
  • Mutates the items array to close all items except the one with the given id

    Parameters

    • item: any
    • items: any

    Returns void

  • The function creates a unique id for each item in the menu and adds the parentId to each item

    Parameters

    Returns LinqMultiLevelMenuItems

    LinqMultiLevelMenuItems

  • createLevels - Creates levels for each item in the menu by adding a level property to each item

    Parameters

    Returns LinqMultiLevelMenuItems

  • The function flattens the menu items into a single array

    Parameters

    Returns LinqMultiLevelMenuItems

    LinqMultiLevelMenuItems

  • The function removes the parentLabel from the menu items if the parentLabel is repeated in the menu. The function assumes the items are flattened.

    Parameters

    Returns LinqMultiLevelMenuItems

    LinqMultiLevelMenuItems

  • The function removes items with children from the menu

    Parameters

    Returns LinqMultiLevelMenuItems

    LinqMultiLevelMenuItems

  • Parameters

    Returns boolean

Generated using TypeDoc