MCPcopy Create free account
hub / github.com/GNOME/gjs / updateDisplay

Function updateDisplay

examples/calc.js:10–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8let calcVal = '';
9
10function updateDisplay() {
11 label.set_markup(`<span size='30000'>${calcVal}</span>`);
12
13 if (calcVal === '')
14 label.set_markup("<span size='30000'>0</span>");
15}
16
17function clear() {
18 calcVal = '';

Callers 7

clearFunction · 0.85
backspaceFunction · 0.85
pressedOperatorFunction · 0.85
pressedNumberFunction · 0.85
swapSignFunction · 0.85
randomNumFunction · 0.85
calc.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected