MCPcopy Index your code
hub / github.com/stemkoski/stemkoski.github.com / addRow

Function addRow

MathBox/dat.gui.js:2349–2359  ·  view source on GitHub ↗

* Add a row to the end of the GUI or before another row. * * @param gui * @param [dom] If specified, inserts the dom content in the new row * @param [liBefore] If specified, places the new row before another row

(gui, dom, liBefore)

Source from the content-addressed store, hash-verified

2347 * @param [liBefore] If specified, places the new row before another row
2348 */
2349 function addRow(gui, dom, liBefore) {
2350 var li = document.createElement('li');
2351 if (dom) li.appendChild(dom);
2352 if (liBefore) {
2353 gui.__ul.insertBefore(li, params.before);
2354 } else {
2355 gui.__ul.appendChild(li);
2356 }
2357 gui.onResize();
2358 return li;
2359 }
2360
2361 function augmentController(gui, li, controller) {
2362

Callers 3

GUIFunction · 0.85
dat.gui.jsFile · 0.85
addFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected