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

Method setData

src/ui/PointInfo.js:74–86  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

72 // Public methods
73
74 setData(data) {
75 if (!data) {
76 return;
77 }
78
79 if (data.name) {
80 this.name.html(data.name);
81 }
82
83 if (data.type) {
84 this.type.html(data.type);
85 }
86 }
87
88 setTargetNumbers(targetNumbers) {
89 this.targetNumbers.empty();

Callers

nothing calls this directly

Calls 1

htmlMethod · 0.80

Tested by

no test coverage detected