@serenity-is/corelib / ClassicRouter

Class: ClassicRouter

Defined in: src/compat/router.ts:25

Implements

Constructors

Constructor

new ClassicRouter(): ClassicRouter

Defined in: src/compat/router.ts:383

Returns

ClassicRouter

Properties

enabled

enabled: boolean = true

Defined in: src/compat/router.ts:33

Implementation of

IClassicRouter.enabled


mightBeRouteRegex

mightBeRouteRegex: RegExp

Defined in: src/compat/router.ts:185

Implementation of

IClassicRouter.mightBeRouteRegex

Methods

destroy()

destroy(): void

Defined in: src/compat/router.ts:401

Returns

void

Implementation of

IClassicRouter.destroy


dialog()

dialog(owner, element, dialogHash): void

Defined in: src/compat/router.ts:171

Parameters

owner

HTMLElement | ArrayLike<HTMLElement>

element

HTMLElement | ArrayLike<HTMLElement>

dialogHash

() => string

Returns

void

Implementation of

IClassicRouter.dialog


ignoreHashChange()

ignoreHashChange(expiration?): void

Defined in: src/compat/router.ts:309

Parameters

expiration?

number

Returns

void

Implementation of

IClassicRouter.ignoreHashChange


navigate(newHash, tryBack?, silent?): void

Defined in: src/compat/router.ts:39

Parameters

newHash

string

tryBack?

boolean

silent?

boolean

Returns

void

Implementation of

IClassicRouter.navigate


replace()

replace(newHash, tryBack?): void

Defined in: src/compat/router.ts:66

Parameters

newHash

string

tryBack?

boolean

Returns

void

Implementation of

IClassicRouter.replace


replaceLast()

replaceLast(newHash, tryBack?): void

Defined in: src/compat/router.ts:70

Parameters

newHash

string

tryBack?

boolean

Returns

void

Implementation of

IClassicRouter.replaceLast


resolve()

resolve(newHash?): "disabled" | "skipped" | "shebang" | "missinghandler" | "calledhandler"

Defined in: src/compat/router.ts:187

Parameters

newHash?

string

Returns

"disabled" | "skipped" | "shebang" | "missinghandler" | "calledhandler"

Implementation of

IClassicRouter.resolve