Property Hub Modifier

Block Group: Logic

The Property Hub Modifier block enables you to dynamically control the source and target of the value of its fields by specifying the name of the source property in the field's name parameter. The value of the field is propagated to connected blocks according to the setting of the hubMode parameter.

The following simple example uses a string property to specify the name of the property mapped to field0. The property hub that is connected to the property hub modifier has two properties, and the property name in the string variable specifies the property that is used to populate field0.

For information on using dataflow blocks, see Dataflow.


Input/Output Properties

The following properties of the Router block can take input and give output.

  • invoke
  • hubMode
  • hubInstance
  • field n
  • value n

invoke triggers the block.

hubMode options control the block behavior as follows: Master instantiates the properties object; define a single master and bind it to the objects that you want its properties to control. Slave sends and receives values to connected property hubs but does not instantiate the properties. Read-only blocks can have their values set but do not propagate the values, and Write-only propagate their values but are not affected by changes to other connected property hubs.

hubInstance is used to bind the master block to child blocks, to enable values to propagate as desired.

field n is the name of the property that the field reads and writes.

value n is the value of the field, which is read from and written to the property specified by field n according to the hubMode setting.