MCPcopy Create free account
hub / github.com/chieapp/chie / constructor

Method constructor

src/view/params-view.ts:224–230  ·  view source on GitHub ↗
(param: Param, nullable: boolean)

Source from the content-addressed store, hash-verified

222
223export class ComboBoxParamRow extends ParamRow<gui.ComboBox> {
224 constructor(param: Param, nullable: boolean) {
225 super(param, gui.ComboBox.create(), nullable);
226 if (param.value && typeof param.value == 'string')
227 this.setValue(param.value);
228 if (param.choices)
229 param.choices.forEach(p => this.editor.addItem(p));
230 }
231
232 subscribeOnChange(callback: () => void) {
233 this.connectYueSignal(this.editor.onTextChange, callback);

Callers

nothing calls this directly

Calls 2

setValueMethod · 0.95
addItemMethod · 0.80

Tested by

no test coverage detected