Created
November 28, 2012 14:08
-
-
Save pjanik/4161541 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"title": "onPropertyChange Demo", | |
"publicationStatus": "public", | |
"subtitle": "", | |
"about": "", | |
"models": [ | |
{ | |
"id": "simple-ke-shading$0", | |
"url": "/imports/legacy-mw-content/converted/conversion-and-physics-examples/simple-ke-shading$0.json", | |
"viewOptions": { | |
"controlButtons": "play_reset" | |
}, | |
"onLoad": [ | |
"onPropertyChange('timePs', function(t) {", | |
" alert('Time [ps]: ' + t); ", | |
"});" | |
] | |
} | |
], | |
"outputs": [ | |
{ | |
"name": "timePs", | |
"units": "ps", | |
"label": "Time in Ps", | |
"value": [ | |
"return Math.round(getTime() / 1000);" | |
] | |
} | |
], | |
"components": [ | |
{ | |
"type": "checkbox", | |
"id": "temperature-control", | |
"text": "Temperature Control (property link)", | |
"property": "temperatureControl" | |
}, | |
{ | |
"type": "checkbox", | |
"id": "temperature-control-action", | |
"text": "Temperature Control (action defined)", | |
"onClick": "set({temperatureControl: value})" | |
} | |
], | |
"layout": { | |
"bottom": [ | |
"temperature-control", | |
"temperature-control-action" | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment