setInheritedProp(propName, value)
Assigns a value to the inherited property and propagates the property to its children.
Returns
Not applicable.
Parameters
Name | Type | Description | Required |
propName | object | The name of the inherited property to which a value has to be assigned. | ✅ |
value | any | The value to be assigned to the inherited property. | ✅ |
Usage example
In this example, the API assigns the DETAILS
value to the
displayMode
property.
getPConnect().setInheritedProp("displayMode", "DETAILS");
Previous topic setAction(eventType, handler) Next topic setValue(prop, value, initialValue)