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

Method addOption

src/dropdown.ts:185–191  ·  view source on GitHub ↗
(value: string, label: string)

Source from the content-addressed store, hash-verified

183 }
184
185 addOption(value: string, label: string) {
186 this.options.set(value, label);
187 if (this.dropdownEl) {
188 this.renderDropdown();
189 }
190 this.updateLabel();
191 }
192
193 setValues(values: string[]) {
194 this.selectedValues = new Set(values);

Callers 1

renderMethod · 0.95

Calls 2

renderDropdownMethod · 0.95
updateLabelMethod · 0.95

Tested by

no test coverage detected