Skip to main content

Class: DataInterface<T, U>

A structure representing a source of named data that can be modified

Type parameters

NameType
TT
UT

Constructors

constructor

new DataInterface<T, U>(input, modify): DataInterface<T, U>

Constructs a new ModifiableDataSource

Type parameters

NameType
TT
UT

Parameters

NameTypeDescription
inputSubscribable<T> | Consumer<T>an input for data
modify(value: U) => voida callback when the data needs to be modified

Returns

DataInterface<T, U>

Defined in

workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Framework/FmcDataBinding.ts:14

Properties

input

Readonly input: Subscribable<T> | Consumer<T>

an input for data

Defined in

workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Framework/FmcDataBinding.ts:15


modify

modify: (value: U) => void

a callback when the data needs to be modified

Type declaration

▸ (value): void

a callback when the data needs to be modified

Parameters
NameType
valueU
Returns

void

Defined in

workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Framework/FmcDataBinding.ts:16

Methods

fromMutSubscribable

fromMutSubscribable<T>(sub): DataInterface<T, T>

Creates a DataInterface from a MutableSubscribable

Type parameters

Name
T

Parameters

NameTypeDescription
subMutableSubscribable<T, T>the MutableSubscribable to bind to

Returns

DataInterface<T, T>

the DataInterface

Defined in

workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Framework/FmcDataBinding.ts:25