Options
All
  • Public
  • Public/Protected
  • All
Menu

Class NavigationTreeComponent

Hierarchy

  • AbstractNavigationTreeComponent
    • NavigationTreeComponent

Index

Constructors

  • new NavigationTreeComponent(config: ConfigurationService, router: Router, log: LoggerService, userService: UserService, accessService: AccessService, activeGroupService: ActiveGroupService, taskResourceService: TaskResourceService, languageService: LanguageService, navigationRouteProvider: DynamicNavigationRouteProviderService): NavigationTreeComponent

Properties

_accessService: AccessService
_activeGroupService: ActiveGroupService
_config: ConfigurationService
_languageService: LanguageService
_log: LoggerService
_navigationRouteProvider: DynamicNavigationRouteProviderService
_reloadNavigation: ReplaySubject<void>
_router: Router
_taskResourceService: TaskResourceService
_userService: UserService
contentWidth: BehaviorSubject<number>
dataSource: MatTreeNestedDataSource<NavigationNode>
parentUrl: string
routerChange: boolean
treeControl: NestedTreeControl<NavigationNode, NavigationNode>
viewPath: string
width: number
ɵcmp: unknown
ɵfac: unknown

Methods

  • appendRouteSegment(parentUrl: string, routeSegment: string): string
  • Appends the route segment to the parent URL.

    Parameters

    • parentUrl: string

      URL of the parent. Should not end with '/'

    • routeSegment: string

      URL segment of the child

    Returns string

    parentUrl/routeSegment if the routeSegment is truthy (not an empty string). Returns parentUrl if routeSegment is falsy (empty string).

  • buildNode(view: View, routeSegment: string, parentUrl: string): NavigationNode
  • Parameters

    • view: View
    • routeSegment: string
    • parentUrl: string

    Returns NavigationNode

  • getNodeIcon(view: View): string
  • Parameters

    • view: View

    Returns string

  • getNodeName(view: View, routeSegment: string): string
  • Parameters

    • view: View
    • routeSegment: string

    Returns string

  • getNodeRouteSegment(view: View): string
  • Parameters

    • view: View

      configuration of some view, whose routeSegment we want to determine

    Returns string

    the routeSegment for the provided view, or undefined if none is specified

  • getNodeTranslateFlag(view: View): boolean
  • Parameters

    • view: View

    Returns boolean

  • hasChild(_: number, node: NavigationNode): boolean
  • Parameters

    • _: number
    • node: NavigationNode

    Returns boolean

  • hasNavigation(route: View): boolean
  • Parameters

    • route: View

    Returns boolean

  • hasSubRoutes(route: View): boolean
  • Parameters

    • route: View

    Returns boolean

  • ngOnDestroy(): void
  • Returns void

  • ngOnInit(): void
  • Returns void

  • resolveChange(): void
  • Returns void

  • resolveLevels(nodes: NavigationNode[], parentLevel?: number): void
  • Parameters

    • nodes: NavigationNode[]
    • Optional parentLevel: number

    Returns void

  • resolveNavigation(): void
  • Returns void

  • resolveNavigationNodes(views: Views, parentUrl: string, ancestorNodeContainer?: NavigationNode[]): NavigationNode[]
  • Converts the provided {@link Views} object into the corresponding navigation tree

    Parameters

    • views: Views

      navigation configuration

    • parentUrl: string

      URL of the parent navigation tree node

    • Optional ancestorNodeContainer: NavigationNode[]

      if the parent node has no navigation this attribute contains the closest ancestor that has navigation

    Returns NavigationNode[]

  • resolveNavigationNodesWithOffsetRoot(): NavigationNode[]
  • Returns NavigationNode[]

Generated using TypeDoc