ofObject method

Binding ofObject([
  1. String? srcname
])

Modify this Binding to set its #sourceName property so as to identify a GraphObject in the visual tree of the bound Panel as the data source, instead of the Panel#data as the data source.

This permits data binding on GraphObject properties, such as Part#isSelected. Remember that you can reliably data bind only on settable properties, not on read-only or computed properties. @param {string=} srcname 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, whose Panel#data is the bound data. @return {Binding} this Binding to another GraphObject. @see #sourceName @see #ofModel

Implementation

_i3.Binding ofObject([_i2.String? srcname]) => _i4.callMethod(
      this,
      'ofObject',
      [srcname ?? _i5.undefined],
    );