You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When working on phetsims/blackbody-spectrum#83, I needed to instrument the Property that is used for ProjectorModeCheckbox. However, Blackbody Spectrum doesn't pass in its own Property, but links to one that ProjectorModeCheckbox creates if no Property is provided. @zepumph suggested that I instrument that Property within ProjectorModeCheckbox.
Then in that case, since ProjectorModeCheckbox has a child tandem projectorModeEnabledProperty, there is no need for the typical property* link in Studio. So, I'm going to add the option phetioLinkProperty to Checkbox, which defaults to true, and only creates a Property link if it's true.
The text was updated successfully, but these errors were encountered:
This worked well. I tested that the linked Property is not appearing in Blackbody Spectrum, but is still appearing in Charges and Fields (Charges and Fields provides its own BooleanProperty to ProjectorModeCheckbox). Assigning to @zepumph for review.
When working on phetsims/blackbody-spectrum#83, I needed to instrument the Property that is used for ProjectorModeCheckbox. However, Blackbody Spectrum doesn't pass in its own Property, but links to one that ProjectorModeCheckbox creates if no Property is provided. @zepumph suggested that I instrument that Property within ProjectorModeCheckbox.
Then in that case, since ProjectorModeCheckbox has a child tandem projectorModeEnabledProperty, there is no need for the typical property* link in Studio. So, I'm going to add the option
phetioLinkProperty
to Checkbox, which defaults to true, and only creates a Property link if it's true.The text was updated successfully, but these errors were encountered: