Files
Isulion-ComfyUI_Isulion/Core_Nodes/js/CustomTextNode.js
T
2025-01-06 00:34:34 +01:00

29 lines
631 B
JavaScript

import { LitElement, html } from 'lit-element';
class CustomTextNode extends LitElement {
static get properties() {
return {
widget: { type: Object }
};
}
constructor() {
super();
this.widget = {};
}
render() {
return html`
<pre><code>${this.widget.output}</code></pre>
`;
}
update(changedProperties) {
if (changedProperties.has('widget')) {
this.widget = changedProperties.get('widget');
}
super.update(changedProperties);
}
}
customElements.define('custom-text-node', CustomTextNode);