Skip to main content

Class: PageLinkField

Defined in: src/sdk/fmc/components/PageLinkField.ts:19

A field for displaying a link to navigate to another page

Extends​

Constructors​

Constructor​

protected new PageLinkField(page, options): PageLinkField

Defined in: src/sdk/fmc/components/PageLinkField.ts:21

Parameters​

ParameterType
pageAbstractFmcPage
optionsPageLinkFieldOptions

Returns​

PageLinkField

Inherit Doc​

Overrides​

DisplayField.constructor

Properties​

isDisabled()​

isDisabled: () => boolean

Defined in: src/sdk/fmc/components/FmcComponent.ts:57

Returns​

boolean

Inherited from​

DisplayField.isDisabled


options​

protected options: DisplayFieldOptions<string>

Defined in: src/sdk/fmc/components/DisplayField.ts:41

Inherited from​

DisplayField.options


page​

protected readonly page: AbstractFmcPage

Defined in: src/sdk/fmc/components/FmcComponent.ts:61

Inherited from​

DisplayField.page


value​

protected value: null | string = null

Defined in: src/sdk/fmc/components/DisplayField.ts:30

Inherited from​

DisplayField.value

Accessors​

rawValue​

Get Signature​

get protected rawValue(): null | T

Defined in: src/sdk/fmc/components/DisplayField.ts:36

Gets the raw value of this display field

Returns​

null | T

the value

Inherited from​

DisplayField.rawValue

Methods​

bind()​

bind(subscribable): DisplayField<string>

Defined in: src/sdk/fmc/components/DisplayField.ts:50

Creates and registers a binding on the page, linking this field with a subscribable

Parameters​

ParameterTypeDescription
subscribableSubscribable<string>the subscribable to bind to

Returns​

DisplayField<string>

the created binding (usually not needed)

Inherited from​

DisplayField.bind


getOptions()​

getOptions(): DisplayFieldOptions

Defined in: src/sdk/fmc/components/FmcComponent.ts:124

Returns the component's options

Returns​

DisplayFieldOptions

The options.

Inherited from​

DisplayField.getOptions


handleSelectKey()​

handleSelectKey(event): Promise<string | boolean>

Defined in: src/sdk/fmc/components/FmcComponent.ts:80

Parameters​

ParameterType
eventLineSelectKeyEvent

Returns​

Promise<string | boolean>

Inherit Doc​

Inherited from​

DisplayField.handleSelectKey


invalidate()​

protected invalidate(): void

Defined in: src/sdk/fmc/components/FmcComponent.ts:69

Invalidates the component and queues a re-render if one is not already queued

Returns​

void

Inherited from​

DisplayField.invalidate


onHandleSelectKey()​

protected onHandleSelectKey(event): Promise<string | boolean>

Defined in: src/sdk/fmc/components/DisplayField.ts:69

Parameters​

ParameterType
eventLineSelectKeyEvent

Returns​

Promise<string | boolean>

Inherit Doc​

Inherited from​

DisplayField.onHandleSelectKey


render()​

render(): FmcFormatterOutput

Defined in: src/sdk/fmc/components/DisplayField.ts:74

Renders the FMC component into an FmcRenderTemplateRow

Returns​

FmcFormatterOutput

Inherited from​

DisplayField.render


takeValue()​

takeValue(value, shouldInvalidate): void

Defined in: src/sdk/fmc/components/DisplayField.ts:60

Takes an input value, displays it and stores it

Parameters​

ParameterTypeDefault valueDescription
valuenull | stringundefinedthe new input value
shouldInvalidatebooleanfalsewhether or not to invalidate the page

Returns​

void

Inherited from​

DisplayField.takeValue


static createLink(page, label, route, disabled, params?): PageLinkField

Defined in: src/sdk/fmc/components/PageLinkField.ts:42

Creates an PageLinkField

Parameters​

ParameterTypeDefault valueDescription
pageAbstractFmcPageundefinedthe parent FmcPage
labelstringundefinedthe label to display
routestringundefinedthe route to navigate to (will disable link when empty)
disabledbooleanfalsewhether the link is disabled
params?Record<string, unknown>undefinedParameters for the route

Returns​

PageLinkField

the PageLinkField