mirror of
https://github.com/dataarts/dat.gui.git
synced 2024-12-12 04:08:27 +00:00
Initial values for checkboxes in order
This commit is contained in:
parent
ece6c521f8
commit
df12193b83
@ -7,13 +7,8 @@ DAT.GUI.BooleanController = function() {
|
|||||||
var input = document.createElement('input');
|
var input = document.createElement('input');
|
||||||
input.setAttribute('type', 'checkbox');
|
input.setAttribute('type', 'checkbox');
|
||||||
|
|
||||||
if (arguments[3]) {
|
input.checked = this.getValue();
|
||||||
input.checked = true;
|
this.setValue(this.getValue());
|
||||||
this.setValue(true);
|
|
||||||
} else {
|
|
||||||
input.checked = false;
|
|
||||||
this.setValue(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
this.domElement.addEventListener('click', function(e) {
|
this.domElement.addEventListener('click', function(e) {
|
||||||
input.checked = !input.checked;
|
input.checked = !input.checked;
|
||||||
|
Loading…
Reference in New Issue
Block a user