We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3fa79ec + edf4a7b commit b758b3eCopy full SHA for b758b3e
src/ElementComponent.ts
@@ -129,6 +129,22 @@ export abstract class ElementComponent<T extends Element> {
129
return this;
130
}
131
132
+ /**
133
+ * Set text content
134
+ */
135
+ public text(text: string) {
136
+ this.element.textContent = text;
137
+ return this;
138
+ }
139
+
140
141
+ * Set inner HTML
142
143
+ public html(html: string) {
144
+ this.element.innerHTML = html;
145
146
147
148
/**
149
* Set element property
150
* @param name property name
0 commit comments