Set component styles
Sets new style properties for the target UI component.
Sets new style properties for the target UI component.
The new styles are merged on top of existing styles, so only the defined properties get updated.
See [Style properties reference](https://appgyver.gitbook.io/composer/reference/style-properties\) in the documentation for details on available style property names.

Input arguments

Label
Key
Type
Required?
Default
Description
View component
componentId
ComponentId
Yes
–
View component whose styles to set.
New styles
newStyles
Object
Yes
–
New style properties to apply to the given component. It is up to the user to ensure the defined properties and their values are correct.

Output arguments

Number of outputs: 1
No output arguments.

Events

No events.

Errors

No errors.
Last modified 5mo ago
Export as PDF
Copy link