buildHtmlTable(data, opts = {}) {
    return _ui.buildHtmlTable(data, opts);
  }
Builds an HTML table from an array (or object) of objects
1st row is used for columns.
If an object of objects, inner keys are used to populate th/td `data-col-name` attribs.
@param {Array<object>|object} data Input data array or object
@param {object} opts Table options
  @param {Array<columnDefinition>=} opts.cols Column metadata. If not provided will be derived from 1st row of data
@returns {HTMLTableElement|HTMLParagraphElement} Output HTML Element