showMsg(showHide, parent = "body") {
    if (showHide === void 0) showHide = !__privateGet(this, _isShowMsg);
    __privateSet(this, _isShowMsg, showHide);
    let slot = "Waiting for a message from Node-RED";
    if (this.msg && Object.keys(this.msg).length > 0) {
      slot = this.syntaxHighlight(this.msg);
    }
    if (showHide === false) {
      _ui._uiRemove({
        components: [
          "#uib_last_msg_wrap"
        ]
      });
    } else {
      _ui._uiReplace({
        components: [
          {
            type: "div",
            id: "uib_last_msg_wrap",
            parent,
            attributes: {
              title: "Last message from Node-RED"
            },
            components: [
              {
                type: "button",
                attributes: {
                  onclick: 'uibuilder.copyToClipboard("msg")',
                  class: "compact",
                  style: "right:3em;"
                },
                slot: "\u{1F4CB}"
              },
              {
                type: "button",
                attributes: {
                  onclick: "uibuilder.showMsg()",
                  class: "compact",
                  style: "right:.5em;"
                },
                slot: "\u26D4"
              },
              {
                type: "pre",
                id: "uib_last_msg",
                // parent: 'uib_last_msg_wrap',
                attributes: {
                  class: "syntax-highlight"
                },
                slot
              }
            ]
          }
        ]
      });
    }
    return showHide;
  }
Show/hide a display card on the end of the visible HTML that will dynamically display the last incoming msg from Node-RED
The card has the id `uib_last_msg`. Updates are done from a listener set up in the start function.
@param {boolean|undefined} showHide true=show, false=hide. undefined=toggle.
@param {string|undefined} parent Optional. If not undefined, a CSS selector to attach the display to. Defaults to `body`
@returns {boolean} New state