doFormat(val, type) {
    if (this.format === "") return val;
    let out;
    switch (this.format) {
      case "d": {
        if (type === "dt") out = new Date(val).toLocaleDateString();
        else out = val;
        break;
      }
      case "t": {
        if (type === "dt") out = new Date(val).toLocaleTimeString();
        else out = val;
        break;
      }
      case "dt": {
        if (type === "dt") out = new Date(val).toLocaleString();
        else out = val;
        break;
      }
      case "k": {
        if (type === "num") out = "".concat(uibuilder.round(val / 1024, 1), " k");
        else out = val;
        break;
      }
      case "m": {
        if (type === "num") out = "".concat(uibuilder.round(val / 1048576, 2), " M");
        else out = val;
        break;
      }
      default: {
        out = val;
      }
    }
    return out;
  }
Format a value using this.format
@param {Date|string|number} val Value to format
@param {'num'|'dt'} type Type of of input
@returns {*} Formatted value