MCPcopy Index your code
hub / github.com/iChochy/NCE / updateNavigationButtons

Method updateNavigationButtons

js/ReadingSystem.js:705–714  ·  view source on GitHub ↗

* 更新导航按钮状态

()

Source from the content-addressed store, hash-verified

703 * 更新导航按钮状态
704 */
705 updateNavigationButtons() {
706 if (this.dom.prevUnitBtn) {
707 this.dom.prevUnitBtn.disabled = this.state.currentUnitIndex <= 0;
708 }
709
710 if (this.dom.nextUnitBtn) {
711 this.dom.nextUnitBtn.disabled =
712 this.state.currentUnitIndex >= this.state.units.length - 1;
713 }
714 }
715
716 /**
717 * 加载上一个单元

Callers 1

loadUnitByIndexMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected