setAttributesAsText

Sets attributes on element with given id. This method is useful when user edits some existing attribute value and types in several attribute name/value pairs.

Official doc

Note: this function uses an input class, and constructing this class manually may lead to incompatibilities if the class's constructor arguments change in the future. For maximum compatibility, it is advised to use the overload of this function that directly takes the mandatory parameters as arguments, and the optional ones from a configuration lambda.


Sets attributes on element with given id. This method is useful when user edits some existing attribute value and types in several attribute name/value pairs.

Official doc

Parameters

nodeId

Id of the element to set attributes for.

text

Text with a number of attributes. Will parse this text using HTML parser.