MCPcopy Index your code
hub / github.com/JavaCS3/xterm-player / _updatePlaybackButton

Method _updatePlaybackButton

src/ui/ControlBarView.ts:99–111  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

97 }
98
99 private _updatePlaybackButton() {
100 switch (this.state) {
101 case 'Running':
102 this._playbackButton.innerHTML = Icons.Pause
103 break
104 case 'Paused':
105 this._playbackButton.innerHTML = Icons.Play
106 break
107 case 'Stopped':
108 this._playbackButton.innerHTML = Icons.Replay
109 break
110 }
111 }
112 private _updateTimeDisplay() {
113 this._timeDisplay.innerText = formatTime(this._currentTime) + ' / ' + formatTime(this._duration)
114 }

Callers 4

constructorMethod · 0.95
stateMethod · 0.95
bundle.min.jsFile · 0.80
etFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected