Options
All
  • Public
  • Public/Protected
  • All
Menu

Controls what happens when certain url paths match a set of criteria

Hierarchy

Index

Constructors

constructor

Properties

app

app: IApp

The App the ManagerItem is attached to

config

config: ICONFIG

The Config of the App the ManagerItem is attached to

emitter

emitter: EventEmitter

The EventEmitter of the App the ManagerItem is attached to

key

key: any

The key to where ManagerItem is stored in an AdvancedManager

manager

The AdvancedManager the ManagerItem is attached to

Protected routes

List of routes

Methods

add

  • Add a new route to watch for

    Parameters

    Returns Router

boot

  • boot(...args: any): any
  • Called on start of Service

    Parameters

    • Rest ...args: any

    Returns any

init

  • init(...args: any): any
  • Called before the start of a Service, represents a constructor of sorts

    Parameters

    • Rest ...args: any

    Returns any

initEvents

  • initEvents(): void
  • Add listeners for PJAX Events

    Returns void

install

  • install(): any
  • Run after the Manager Item has been registered

    Returns any

isPath

  • Determines if a strings counts has a path

    Parameters

    Returns boolean

parse

  • Parse the multiple different formats for paths, into a { from, to } object

    Parameters

    Returns IRouteToFrom

parsePath

  • Convert strings into path match functions

    Parameters

    Returns boolean | RegExp

register

route

  • route(): void
  • Test if route paths are true, if so run their methods

    Returns void

stop

  • stop(): void
  • Stop Service

    Returns void

stopEvents

  • stopEvents(): void
  • Remove listeners for PJAX Events

    Returns void

uninstall

  • uninstall(): any
  • Run before the ManagerItem has been unregistered

    Returns any

unregister

  • unregister(): void
  • Basically removes a ManagerItem, in order to recover the ManagerItem, it needs to be re-added to an AdvancedManager

    Returns void

Generated using TypeDoc