Lightweight controller library for JavaScript.
Go to file
George Michael Brower f9c0b16314 Fixed a bug in slider
2011-01-26 15:55:56 -07:00
controllers Fixed a bug in slider 2011-01-26 15:55:56 -07:00
demo Changes to demo 2011-01-26 14:33:54 -07:00
.gitignore Added gitignore for textmate project 2011-01-23 13:30:07 -08:00
gui-bare.css Added gui-bare.css and split controllers into seperate files. 2011-01-24 12:38:52 -07:00
gui.css CSS3 hover transitions 2011-01-25 15:24:35 -07:00
gui.js Fixed a bug in slider 2011-01-26 15:55:56 -07:00
index.html Fixed a bug in slider 2011-01-26 15:55:56 -07:00
README updated README 2011-01-24 23:11:24 -08:00

GUI-DAT
=======

Usage:
------

    var controllableObject = 
    	{	
    		numberProperty: 20,
    		anotherNumberProperty: 0,
    		textProperty: "a string",
    		booleanProperty: false,
    		functionProperty: function() {
    			alert("I am a function!");
    		}
    	};

    window.onload = function() {

    	GUI.start();

    	// Creates a number box
    	GUI.add(controllableObject, "numberProperty");

    	// Creates a slider (min, max)
    	GUI.add(controllableObject, "anotherNumberProperty", -100, 100);

    	// Creates a text field
    	GUI.add(controllableObject, "textProperty");

    	// Creates a checkbox
    	GUI.add(controllableObject, "booleanProperty");

    	// Creates a button
    	GUI.add(controllableObject, "functionProperty");

    }