MCPcopy Index your code
hub / github.com/PixelsCommander/HTML-GL / addPresetOption

Function addPresetOption

page/js/dat.gui.js:2810–2818  ·  view source on GitHub ↗
(gui, name, setSelected)

Source from the content-addressed store, hash-verified

2808 }
2809
2810 function addPresetOption(gui, name, setSelected) {
2811 var opt = document.createElement('option');
2812 opt.innerHTML = name;
2813 opt.value = name;
2814 gui.__preset_select.appendChild(opt);
2815 if (setSelected) {
2816 gui.__preset_select.selectedIndex = gui.__preset_select.length - 1;
2817 }
2818 }
2819
2820 function setPresetSelectIndex(gui) {
2821 for (var index = 0; index < gui.__preset_select.length; index++) {

Callers 2

dat.gui.jsFile · 0.85
addSaveMenuFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected