View page on GitHub

Multiple Model Interactives

Demonstrates how to use 'modelLoaded' to handle multiple models within a single Lab interactive

The interactive has a checkbox 'show interactions', this checkbox is bound to the 'showVDWLines' property. This page observes the 'showVDWLines' property, and displays the current value above the interactive. This page also has links for showing or hiding the interactions. They work by setting the 'showVDWLines' property. These two features continue to work even after the model is switched from 'Gas 1' to 'Gas 2'.

Current value of 'show interactions':unknown
Show Interactions | Hide Interactions