Using ChannelEventTrigger in UI (JavaScript)

For this reason I have written a small code. Add this to see all key/value pairs, and, if the key is the name of a function, the result of this function:

Object.keys(this.event).forEach(k => {
    if (k != "equals") {
      var v = this.event[k];
      console.log("event." + k + (typeof v === "function" ? "() = " + v() : " = " + v));
    }
  });