MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / drawOnOff

Method drawOnOff

contributed/modClock/main.js:1031–1031  ·  view source on GitHub ↗
(d)

Source from the content-addressed store, hash-verified

1029 this.display.value((` ${(d.getMinutes()%10)}`).slice(0,4));
1030 }
1031 drawOnOff(d) { 1 == d ? this.display.value(" on") : this.display.value(" off"); }
1032 draw2412(d) { 1 == d ? this.display.value(" 12") : this.display.value("24 "); }
1033 drawYesNo(d) { 1 == d ? this.display.value(" yes") : this.display.value(" no"); }
1034

Callers 1

incrementSettingMethod · 0.95

Calls 1

valueMethod · 0.45

Tested by

no test coverage detected