Class: DataInterface<T, U>
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Framework/FmcDataBinding.ts:6
A structure representing a source of named data that can be modified
Type Parameters
Type Parameter | Default type |
---|---|
T | - |
U | T |
Constructors
Constructor
new DataInterface<
T
,U
>(input
,modify
):DataInterface
<T
,U
>
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Framework/FmcDataBinding.ts:14
Constructs a new ModifiableDataSource
Parameters
Parameter | Type | Description |
---|---|---|
input | Subscribable <T > | Consumer <T > | an input for data |
modify | (value ) => void | a callback when the data needs to be modified |
Returns
DataInterface
<T
, U
>
Properties
input
readonly
input:Subscribable
<T
> |Consumer
<T
>
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Framework/FmcDataBinding.ts:15
an input for data
modify()
modify: (
value
) =>void
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Framework/FmcDataBinding.ts:16
a callback when the data needs to be modified
Parameters
Parameter | Type |
---|---|
value | U |
Returns
void
Methods
fromMutSubscribable()
static
fromMutSubscribable<T
>(sub
):DataInterface
<T
>
Defined in: workingtitle-instruments-wt21/instruments/html_ui/Pages/VCockpit/Instruments/WT21/FMC/Framework/FmcDataBinding.ts:25
Creates a DataInterface from a MutableSubscribable
Type Parameters
Type Parameter |
---|
T |
Parameters
Parameter | Type | Description |
---|---|---|
sub | MutableSubscribable <T > | the MutableSubscribable to bind to |
Returns
DataInterface
<T
>
the DataInterface