MCPcopy Create free account
hub / github.com/alienkitty/space.js / text

Method text

src/utils/Interface.js:272–284  ·  view source on GitHub ↗
(string)

Source from the content-addressed store, hash-verified

270 }
271
272 text(string) {
273 if (!this.element) {
274 return;
275 }
276
277 if (string === undefined) {
278 return this.element.textContent;
279 } else {
280 this.element.textContent = string;
281 }
282
283 return this;
284 }
285
286 html(string) {
287 if (!this.element) {

Callers 15

initMethod · 0.80
updateMethod · 0.80
initMethod · 0.80
initMethod · 0.80
ListSelectClass · 0.80
setIndexMethod · 0.80
initMethod · 0.80
initMethod · 0.80
updateMethod · 0.80
initMethod · 0.80
initMethod · 0.80
updateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected