Preset Buttons{} App
We use the above mkdom method to create a section of a row of inputs and row of buttons. Then wire up the buttons to the inputs. Connect them as per usual by passing them to evl.addClicker() method and connect their callbacks by input name in the evl.clickers{} listener function map.
We made two sets each in their own source file. One called presetButtons(). It loads a preset buttons section in the main page. The other one called webglLampNumRowIJK() loads a preset buttons section in the left side panel. The code is much the same except for configuration changes. The event handling code is identical. If you were going to make a lot of these, you would the re-write the program in a prototype or class object form.
presetButtons() src code file link
presetButtons.js
webglLampNumRowIJK.js
presetButtons() src code screenshot