mirror of
https://github.com/dataarts/dat.gui.git
synced 2024-12-12 04:08:27 +00:00
18 lines
563 B
JavaScript
18 lines
563 B
JavaScript
var Controller = function() {
|
|
|
|
this.name = function(n) {
|
|
this.propertyNameElement.innerHTML = n;
|
|
}
|
|
this.domElement = document.createElement('div');
|
|
this.domElement.setAttribute('class', 'guidat-controller ' + this.type);
|
|
|
|
this.object = arguments[0];
|
|
this.propertyName = arguments[1];
|
|
|
|
this.propertyNameElement = document.createElement('span');
|
|
this.propertyNameElement.setAttribute('class', 'guidat-propertyname');
|
|
this.name(this.propertyName);
|
|
this.domElement.appendChild(this.propertyNameElement);
|
|
|
|
|
|
}; |