Class: DataInterface<T, U>
A structure representing a source of named data that can be modified
Type parameters
Name | Type |
---|---|
T | T |
U | T |
Constructors
constructor
• new DataInterface<T
, U
>(input
, modify
): DataInterface
<T
, U
>
Constructs a new ModifiableDataSource
Type parameters
Name | Type |
---|---|
T | T |
U | T |
Parameters
Name | Type | Description |
---|---|---|
input | Subscribable <T > | Consumer <T > | an input for data |
modify | (value : U ) => void | a 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
Name | Type |
---|---|
value | U |
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
Name | Type | Description |
---|---|---|
sub | MutableSubscribable <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