MCPcopy Create free account
hub / github.com/UNLINEARITY/Obsidian-CodeSpace / updateLabel

Method updateLabel

src/dropdown.ts:205–210  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

203 }
204
205 private updateLabel() {
206 const labelEl = this.selectEl.querySelector(".custom-dropdown-label") as HTMLElement;
207 if (!labelEl) return;
208 const count = this.selectedValues.size;
209 labelEl.textContent = count === 0 ? this.labels.emptyLabel : this.labels.countLabel(count);
210 }
211
212 private toggle() {
213 if (this.isOpen) {

Callers 4

constructorMethod · 0.95
addOptionMethod · 0.95
setValuesMethod · 0.95
renderDropdownMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected