update

abstract fun update(path: String, action: String, decorator: Decorator)

Finds the existing decorator on the target by its action value and merges the provided properties into it. Only non-null properties in decorator overwrite existing values.

Note: If the resulting decorator ends up with neither a label nor an icon, it will still be updated in the model but will not be visible in the UI.

Parameters

path

Slash-separated path identifying a field, row, or column.

action

The action value identifying the decorator to update.

decorator

A decorator whose non-null properties will be merged into the existing one.