Lightweight controller library for JavaScript.
Go to file
2011-01-24 23:15:51 -08:00
.gitignore Added gitignore for textmate project 2011-01-23 13:30:07 -08:00
controller.boolean.js Style changes 2011-01-24 14:21:21 -07:00
controller.function.js Style changes 2011-01-24 14:21:21 -07:00
controller.js Attempt to make text in number boxes unselectable. 2011-01-24 15:08:48 -07:00
controller.number.js made some browser depended changes 2011-01-24 22:51:06 -08:00
controller.string.js Style changes for the sliders. 2011-01-24 15:22:36 -07:00
demo.css Added dummy classes for TODO controllers and updated demo/gui css 2011-01-24 03:36:57 -07:00
FETCH_HEAD made some browser depended changes 2011-01-24 22:51:06 -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 Style changes for the sliders. 2011-01-24 15:22:36 -07:00
gui.js Attempt to make text in number boxes unselectable. 2011-01-24 15:08:48 -07:00
index.html renamed demo.html to index.html for gh-pages 2011-01-24 23:15:51 -08: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");

    }