mirror of
https://github.com/dataarts/dat.gui.git
synced 2024-12-12 04:08:27 +00:00
changing README styles
This commit is contained in:
parent
d0ae26b62f
commit
8d3f8c0dd9
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user