changing README styles

This commit is contained in:
jonobr1 2011-01-28 17:20:51 -07:00
parent d0ae26b62f
commit 8d3f8c0dd9

View File

@ -31,9 +31,9 @@
</script> </script>
+ ui-dat will infer the type of the property you're trying to add (based on its initial value) and create the corresponding control. + ui-dat will infer the type of the property you're trying to add (based on its initial value) and create the corresponding control.
+ The properties must be public, i.e. defined by `**this**.prop = value`. + The properties must be public, i.e. defined by `this.prop = value`.
## Monitor variable changes <i>outside</i> of the GUI \#\# Monitor variable changes <i>outside</i> of the GUI
Let's say you have a variable that changes by itself from time to time. If you'd like the GUI to reflect those changes, use the listen() method Let's say you have a variable that changes by itself from time to time. If you'd like the GUI to reflect those changes, use the listen() method
GUI.add(obj, "propName").listen(); GUI.add(obj, "propName").listen();
## Fire a function when someone uses a control ## Fire a function when someone uses a control