I would like to include into a <td class="body_content">
a DAT.Gui menu
. For this, I did :
// Create GUI
var gui = new dat.GUI({
autoplace: false,
width: 350,
height: 15 * 32 - 1
});
var elementBodyContent = document.getElementsByClassName('body_content')[0];
elementBodyContent.appenChild(gui.domElement);
Unfortunately, I get the following error (on the last line above) :
TypeError: elementBodyContent.appenChild is not a function
I don't know how to circumvent this issue : is gui
a valid DOM Element ?