mirror of
https://github.com/dataarts/dat.gui.git
synced 2024-12-12 04:08:27 +00:00
29 lines
564 B
JavaScript
29 lines
564 B
JavaScript
/* globals Polymer */
|
|
|
|
Polymer( 'dat-gui-folder', {
|
|
|
|
parent: null,
|
|
open: false,
|
|
|
|
add: function() {
|
|
var controller = this.parent.add.apply( this.parent, arguments );
|
|
this.appendChild( controller.row );
|
|
return controller;
|
|
},
|
|
|
|
var: function() {
|
|
var controller = this.parent.var.apply( this.parent, arguments );
|
|
this.appendChild( controller.row );
|
|
return controller;
|
|
},
|
|
|
|
|
|
// Events
|
|
// -------------------------------
|
|
|
|
tap: function() {
|
|
this.open = !this.open
|
|
}
|
|
|
|
} );
|