setValue(prop, value, initialValue)
Assigns a value to a property in the Redux Store.
Returns
Not applicable.
Parameters
Name | Type | Description | Required |
prop | string | The name of the property to which a value must be assigned. | ✅ |
value | string | The value that must be assigned to a property. | ✅ |
initialValue | string | The default value assigned to the property. | ❌ |
Usage example
In this example, the API assigns the lorem ipsum
value to the
firstName
property.
getPConnect().setValue('.firstName', 'lorem ipsum');
Previous topic setInheritedProp(propName, value) Next topic errorMsgConfig