dat.gui/controller.string.js
2011-01-24 12:38:52 -07:00

9 lines
360 B
JavaScript

var StringController = function() {
this.type = "string";
Controller.apply(this, arguments);
var input = document.createElement('input');
input.setAttribute('value', this.object[this.propertyName]);
this.domElement.appendChild(input);
};
StringController.prototype = new Controller();
StringController.prototype.constructor = StringController;