* Formats and displays output * * @param {Object} data The data object to format and display
(data)
| 40 | */ |
| 41 | |
| 42 | show(data) { |
| 43 | let output = null |
| 44 | if (typeof data === 'string') { |
| 45 | output = data |
| 46 | } else { |
| 47 | output = JSON.stringify(data, null, 2) |
| 48 | } |
| 49 | this.output.setValue(output) |
| 50 | } |
| 51 | |
| 52 | /** |
| 53 | * Sets the theme dynamically |