Skip to main content

Class: FmcComponent<O>

A class for defining FMC components

LSK events

This class hierarchy deals with LSK presses in the following order:

  1. handleSelectKey - this is called by the page when it receives an LSk associated with the component
  2. IF the DELETE flag is set - call FmcComponentOptions.onDelete if it's present + apply return value logic - otherwise continue
  3. ELSE - call FmcComponentOptions.onSelected if it's present and apply return value logic - continue otherwise
  4. call onHandleSelectKey - overridden by a subclass

Type parameters

NameType
Oextends FmcComponentOptions = FmcComponentOptions

Hierarchy

Constructors

constructor

new FmcComponent<O>(page, options): FmcComponent<O>

Type parameters

NameType
Oextends FmcComponentOptions = FmcComponentOptions

Parameters

NameType
pageAbstractFmcPage<any>
optionsO

Returns

FmcComponent<O>

Inherit Doc

Defined in

src/sdk/fmc/components/FmcComponent.ts:60

Properties

isDisabled

isDisabled: () => boolean

Type declaration

▸ (): boolean

Returns

boolean

Defined in

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


options

Protected Readonly options: O

Defined in

src/sdk/fmc/components/FmcComponent.ts:62


page

Protected Readonly page: AbstractFmcPage<any>

Defined in

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

Methods

getOptions

getOptions(): O

Returns the component's options

Returns

O

The options.

Defined in

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


handleSelectKey

handleSelectKey(event): Promise<string | boolean>

Parameters

NameType
eventLineSelectKeyEvent

Returns

Promise<string | boolean>

Inherit Doc

Defined in

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


invalidate

invalidate(): void

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

Returns

void

Defined in

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


onHandleSelectKey

onHandleSelectKey(event): Promise<string | boolean>

Parameters

NameType
eventLineSelectKeyEvent

Returns

Promise<string | boolean>

Defined in

src/sdk/fmc/components/FmcComponent.ts:118


render

render(): string | FmcRenderTemplate

Renders the FMC component into an FmcRenderTemplateRow

Returns

string | FmcRenderTemplate

Defined in

src/sdk/fmc/components/FmcComponent.ts:76