Examples of embedding Lab Interactives
Github Repository: concord-consortium/lab-examples
- Simple Embed - A simple web page embedding an interactive
- Snaphot - Using shutterbug to take a snapshot of an interactive
- Start Empty - Interactive starts out empty and then page sends interactive JSON to it.
- Observe and Set - Simple example of observing and setting a property
- Multiple Model Interactives - Demonstrates how to use 'modelLoaded' to handle multiple models within a single Lab interactive
- Graph Property - Embedding an interactive, observering a property, and graphing it.
- Coordination - Demonstrates embedding multiple Interactives and only letting one play at a time. The code listens for the play event and calls stop on all other interactives.
- Graph Property 2 - Graphing a property from a Lab interactive with stepForward and stepBack support.
- Graph Data Coordination - Transferring graph data from one interactive to another.
- Prediction and Sensor Connector interaction. - Transferring graph data from one interactive to another.
- Click to Play Prediction and Sensor Interaction. - Transferring graph data from one interactive to another.
- Multiple Sensor Connectors in one page. - Multiple sensor connectors running simultaneously in the same page.
- Multiple Sensor Connectors in one page (with click-to-play). - Multiple sensor connectors running simultaneously in the same page (with click-to-play).
- Save Interactive State - Interactive starts out empty and then page sends interactive JSON to it.