(param: Param, nullable: boolean)
| 222 | |
| 223 | export 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); |