function addRow(gui, dom) {
    // create list item
    const li = document.createElement('li');
    if (dom) {
      li.appendChild(dom);
    }
    gui.__ul.appendChild(li);
    gui.onResize();
    return li;
  }
Adds a row to the DOM.

@param gui
@param dom element to be added