copyToClipboard(varToCopy) {
    let data = "";
    try {
      data = JSON.stringify(this.get(varToCopy));
    } catch (e) {
      log("error", "copyToClipboard", 'Could not copy "'.concat(varToCopy, '" to clipboard.'), e.message)();
    }
    navigator.clipboard.writeText(data);
  }
Copies a uibuilder variable to the browser clipboard
@param {string} varToCopy The name of the uibuilder variable to copy to the clipboard