Provides callback hooks for the consuming system to supply to ValueHostsManager. This instance is supplied in the constructor of ValueHostsManager.

Hierarchy (view full)

Implemented by

Properties

onInputValueChanged?: null | InputValueChangedHandler

Called when the InputValueHost's InputValue property has changed. If setup, you can prevent it from being fired with the options parameter of setValue() to avoid round trips where you already know the details. You can setup the same callback on individual InputValueHosts. Here, it aggregates all InputValueHost notifications.

onValueHostInstanceStateChanged?: null | ValueHostInstanceStateChangedHandler

Called when any ValueHost had its ValueHostInstanceState changed. React example: React component useState feature retains this value and needs to know when to call the setValueHostInstanceState() with the stateToRetain. You can setup the same callback on individual ValueHosts. Here, it aggregates all ValueHost notifications.

onValueChanged?: null | ValueChangedHandler

Called when the ValueHost's Value property has changed. If setup, you can prevent it from being fired with the options parameter of setValue() to avoid round trips where you already know the details. You can setup the same callback on individual ValueHosts. Here, it aggregates all ValueHost notifications.

onInstanceStateChanged?: null | ValueHostsManagerInstanceStateChangedHandler

Called when the ValueHostsManager's InstanceState has changed. React example: React component useState feature retains this value and needs to know when to call the setState function with the stateToRetain

onConfigChanged?: null | ValueHostsManagerConfigChangedHandler

Use this when caching the configuration for a later creation of ValueHostsManager.

Called when the configuration of ValueHosts has been changed, usually through the ValueHostsManagerConfigModifier.apply, or these members of ValueHostsManager: addValueHost, addOrUpdateValueHost, addOrMergeValueHost, discardValueHost. The supplied object is a clone so modifications will not impact the ValueHostsManager.

Note that where a ValueHostConfig has a property that references a function, you will have to retain that reference in some way to reuse it. In particular, ValidatorConfig.conditionCreator.

Generated using TypeDoc v0.25.12