Interface: CoreRouterState

Oracle® JavaScript Extension Toolkit (JET)
9.0.0

F24343-01

Signature:

interface CoreRouterState<D extends {[key: string]: any} = {[key: string]: any}, P extends {[key: string]: any} = {[key: string]: any}>

QuickNav

Fields

CoreRouterState

Version:
  • 9.0.0
Module:
  • ojcorerouter

Module usage

See JET Module Loading for an overview of module usage within JET.

Typescript Import Format
//To use this interface, import as below.
import CoreRouter= require("ojs/ojcorerouter");

//To access this interface in your code,
let myVariable: CoreRouter.CoreRouterState;
Generic Parameters
ParameterDescription
DDetail object for the router state
PParameters object for the router state

JET In Typescript

A detailed description of working with JET elements and classes in your typescript project can be found at: JET Typescript Usage.

An interface describing the object used by CoreRouter to represent the routes and associated information to which it can navigate.

Fields

(readonly) detail :D

The detail object for the state, if configured.

(readonly) params :P

Parameters for the state. Parameters are passed to the state via the CoreRouter.go method.

(readonly) path :string

The path of the state. This will always be the string used to navigate to the current state, even if the original path for the route was defined as a RegExp.