updateSituationWithFormValue
API / @publicodes/forms / updateSituationWithFormValue
function updateSituationWithFormValue<Name>(
engine,
dottedName,
inputValue): void Defined in: updateSituationWithFormValue.ts:17
Update the engine situation with the value of an associated form input element.
This function will update the engine situation with the value issued from a form element. It will convert the value to a publicodes expression that can be used to update the engine situation.
If the
Type Parameters
| Type Parameter |
|---|
Name extends string |
Parameters
| Parameter | Type | Description |
|---|---|---|
engine | Engine<Name> | The engine to update |
dottedName | Name | The name of the rule to update (or delete) |
inputValue | undefined | string | number | boolean | is undefined, the rule will be deleted from the situation. |
Returns
void