Skip to main content

Class: FmcScratchpad

Scratchpad for an FMC screen

Constructors

constructor

new FmcScratchpad(bus, options, renderCallback): FmcScratchpad

Ctor

Parameters

NameTypeDescription
busEventBusthe event bus
optionsPartial<FmcScratchpadOptions>the options
renderCallbackFmcRenderCallbackthe render callback

Returns

FmcScratchpad

Defined in

src/sdk/fmc/FmcScratchpad.ts:59

Properties

contents

contents: Subject<string>

Defined in

src/sdk/fmc/FmcScratchpad.ts:45


errorContents

errorContents: Subject<string>

Defined in

src/sdk/fmc/FmcScratchpad.ts:47


isInDelete

isInDelete: Subject<boolean>

Defined in

src/sdk/fmc/FmcScratchpad.ts:51


options

Readonly options: Required<FmcScratchpadOptions>

Defined in

src/sdk/fmc/FmcScratchpad.ts:35


renderedText

renderedText: Subject<string>

Defined in

src/sdk/fmc/FmcScratchpad.ts:49

Methods

backspace

backspace(): void

Deletes the last character on the scratchpad

Returns

void

Defined in

src/sdk/fmc/FmcScratchpad.ts:85


clear

clear(clearError?): void

Clears the scratchpad

Parameters

NameTypeDefault valueDescription
clearErrorbooleantruewhether to clear any scratchpad error content, defaults to true

Returns

void

Defined in

src/sdk/fmc/FmcScratchpad.ts:98


clearError

clearError(): void

Clears the scratchpad error

Returns

void

Defined in

src/sdk/fmc/FmcScratchpad.ts:111


delete

delete(value?, clearError?): void

Sets the scratchpad in DELETE mode (or not)

Parameters

NameTypeDefault valueDescription
value?booleanundefinedoptional value to force, otherwise the value is set to true
clearErrorbooleantruewhether to clear any scratchpad error content, defaults to true

Returns

void

Defined in

src/sdk/fmc/FmcScratchpad.ts:134


error

error(error): void

Sets the scratchpad to an error message

Parameters

NameTypeDescription
errorstringThe error message

Returns

void

Defined in

src/sdk/fmc/FmcScratchpad.ts:119


typeContents

typeContents(char): void

Appends a string on the scratchpad

Parameters

NameTypeDescription
charstringthe string to append

Returns

void

Defined in

src/sdk/fmc/FmcScratchpad.ts:73