From 0e7c179bfc04c29a431e6734d770caa344017f94 Mon Sep 17 00:00:00 2001 From: jonobr1 Date: Fri, 28 Jan 2011 21:41:25 -0700 Subject: [PATCH] README updated for more dynamic purposes --- README.md | 42 +----------------------------------------- 1 file changed, 1 insertion(+), 41 deletions(-) diff --git a/README.md b/README.md index 415cd25..d82136f 100644 --- a/README.md +++ b/README.md @@ -1,44 +1,4 @@ # gui-dat **gui-dat** is a lightweight controller library for JavaScript. It allows you to easily manipulate variables and fire functions on the fly. -## Basic Usage - - -+ 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`. - -Monitor variable changes outside 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 - GUI.add(obj, "propName").listen(); -## Fire a function when someone uses a control - GUI.add(obj, "propName").onChange(function(n) { - alert("You changed me to " + n); - }); +## Check the [index page](http://jonobr1.github.com/gui-dat/) for usage. Initiated by [George Michael Brower](http://georgemichaelbrower.com/) and [Jono Brandel](http://jonobr1.com/) of the Data Arts Team, Google Creative Lab.