Options
All
  • Public
  • Public/Protected
  • All
Menu

Class UltraBuilder

Router builder class for ultradom

Hierarchy

  • UltraBuilder

Index

Properties

build

build: TBuild

Private configRouter

configRouter: IConfigRouter

router

router: Navigo

Methods

Private checkDefault

  • checkDefault(): void

Private checkNotFound

  • checkNotFound(): void

Private checkQuery

  • checkQuery(query: string): string
  • Parameters

    • query: string

    Returns string

Private checkState

  • checkState(query: string): string | object
  • Parameters

    • query: string

    Returns string | object

Private createRootElement

  • createRootElement(root?: string): any
  • Parameters

    • Optional root: string

    Returns any

go

  • go(path: string, state?: any | null, absolute?: boolean): void
  • go to another path of the router

    Parameters

    • path: string

      path to go

    • Optional state: any | null

      pass the current state to the new path

    • Optional absolute: boolean

      if path is absolute

    Returns void

resolve

  • resolve(currentUrl?: string): void
  • Active the router

    Parameters

    • Optional currentUrl: string

      if currentURL is provided then the method tries resolving the registered routes to that URL and not window.location.href

    Returns void

Private setRender

  • setRender(route: IUltraRoutes, params: object, query: string, rootElement?: Element, features?: IFeatures): void

setRouter

  • Set router across the config object

    Parameters

    Returns this

Generated using TypeDoc