A Binding describes how to automatically set a property on a GraphObject} to a value of a property of data in the model. The target property name and the data source property name are strings. All name matching is case-sensitive.
The constructor creates an empty one-way binding.
A string naming the target property on the target object. If this is the empty string or not supplied, the whole GraphObject is used in the call to the conversion function, which should modify the GraphObject directly.
A string naming the source property on the bound data object. If this is the empty string, the whole Panel.data object is used. If this argument is not supplied, the source property is assumed to be the same as the target property.
A function converting the data property value to the value to set the target property. If the function is null or not supplied, no conversion takes place.
This value for Binding#mode uses data source values and sets GraphObject properties.
This value for Binding#mode uses data source values and GraphObject properties and keeps them in sync.
Gets or sets a converter function to apply to the GraphObject property value in order to produce the value to set to a data property.
Gets or sets a converter function to apply to the data property value in order to produce the value to set to the target property.
Gets or sets the directions and frequency in which the binding may be evaluated.
Gets or sets the name of the GraphObject that should act as a source object whose property should be gotten by this data binding.
Gets or sets the name of the property to get from the bound data object, the value of Panel#data.
Gets or sets the name of the property to be set on the target GraphObject.
Modify this Binding to set its #mode to be Binding#TwoWay, and provide an optional conversion function to convert GraphObject property values back to data values.
You should not have a TwoWay binding on a node data object's key property.
Modify this Binding to set its #sourceName property so as to identify a GraphObject in the visual tree of the bound Panel.
the GraphObject#name of an element in the visual tree of the bound Panel; use an empty string to refer to the root panel of that visual tree.
This static method can be used to create a function that parses a string into an enumerated value, given the class that the enumeration values are defined on and a default value if the string cannot be parsed successfully.
(a: string) => go.EnumValue
This static method can be used to convert an object to a string, looking for commonly defined data properties, such as "text", "name", "key", or "id".
string