ui.data.ActiveDictionary.set
Sets the value of a given property. Throws an error if the key provided is not supported by the object. Look at the constructor's parameters to see which properties can be set.
Returns this ui.data.ActiveDictionary.
Usage | Returns |
---|
ActiveDictionary.set(keyOrDict, value) | ui.data.ActiveDictionary |
Argument | Type | Details |
---|
this: ui.data.activedictionary | ui.data.ActiveDictionary | The ui.data.ActiveDictionary instance. |
keyOrDict | Object|String | Either the key of the property to set or a dictionary of key/value pairs to set on the object. |
value | Object, optional | The property's new value. This is required when the first argument is a key string. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 UTC."],[[["`ActiveDictionary.set()` allows modification of properties within a `ui.data.ActiveDictionary` object."],["It accepts either a key-value pair or a dictionary of key-value pairs to update the object's properties."],["An error is thrown if an unsupported key is provided, refer to the constructor's parameters for valid keys."],["The method returns the updated `ui.data.ActiveDictionary` instance for chaining purposes."]]],["The `ActiveDictionary.set` method sets a property's value or multiple properties from a dictionary. It accepts a key (string) and a value, or a dictionary of key-value pairs. If the provided key is invalid, an error is thrown. When setting a single property, a value must be provided. The method returns the `ui.data.ActiveDictionary` instance, allowing for method chaining. The `keyOrDict` argument determines the type of operation to perform, either setting one value or several.\n"]]