Skip to content

@k8slens/extensions / Exports / Renderer / Navigation / PageParam

Class: PageParam<Value>#

Renderer.Navigation.PageParam

Type parameters#

Name Type
Value any

Table of contents#

Constructors#

Properties#

Accessors#

Methods#

Constructors#

constructor#

new PageParam<Value>(dependencies, init)

Type parameters#

Name Type
Value any

Parameters#

Name Type
dependencies PageParamDependencies
init PageParamInit<Value>

Properties#

dependencies#

Protected Readonly dependencies: PageParamDependencies


isMulti#

Readonly isMulti: boolean


name#

Readonly name: string

Accessors#

defaultValue#

get defaultValue(): undefined | Value

Returns#

undefined | Value

Methods#

clear#

clear(): void

Returns#

void


get#

get(): Value

Returns#

Value


getRaw#

getRaw(): string | string[]

Get stringified raw value(s) from document.location.search

Returns#

string | string[]


parse#

parse(values): Value

Parameters#

Name Type
values string | string[]

Returns#

Value


set#

set(value, «destructured»?): void

Parameters#

Name Type
value Value
«destructured» Object
› mergeGlobals? boolean
› replaceHistory? boolean

Returns#

void


setRaw#

setRaw(value): void

Set stringified raw value(s) and update document.location.search

Parameters#

Name Type
value string | string[]

Returns#

void


stringify#

stringify(value?): string[]

Parameters#

Name Type
value? Value

Returns#

string[]


toString#

toString(«destructured»?): string

Parameters#

Name Type
«destructured» Object
› mergeGlobals? boolean
› value? Value

Returns#

string