ui.data.ActiveDictionary

A dictionary-like container for data for use in UI components.

When a property of a ui.data.ActiveDictionary (e.g. myButton.style()) is updated, the component it belongs to is automatically updated. For example, myButton.style().set('color', 'red') would change the color of button's text to red.

UsageReturns
ui.data.ActiveDictionary(object, whitelist)ui.data.ActiveDictionary
ArgumentTypeDetails
objectObject, optional

A JavaScript object with properties and values to initialize this object with.

whitelistList, optional

An array of whitelisted properties for this object. If undefined, then any property is allowed.

Examples

JavaScript

// Your example goes here!

Python

# Your example goes here!