createTable(data = [], opts = { parent: "body" }) {
    _ui.createTable(data, opts);
  }
Directly add a table to a parent element.
@param {Array<object>|Array<Array>|object} data  Input data array or object. Object of objects gives named rows. Array of objects named cols. Array of arrays no naming.
@param {object} [opts] Build options
  @param {Array<columnDefinition>=} opts.cols Column metadata. If not provided will be derived from 1st row of data
  @param {HTMLElement|string} opts.parent Default=body. The table will be added as a child instead of returned. May be an actual HTML element or a CSS Selector
  @param {boolean=} opts.allowHTML Optional, default=false. If true, allows HTML cell content, otherwise only allows text. Always sanitise HTML inputs