(elem: JQuery, name: string, populate: {label: string; desc: string}[])
| 116 | |
| 117 | class Select extends BaseSetting { |
| 118 | constructor(elem: JQuery, name: string, populate: {label: string; desc: string}[]) { |
| 119 | super(elem, name); |
| 120 | |
| 121 | elem.empty(); |
| 122 | for (const e of populate) { |
| 123 | elem.append($(`<option value="${e.label}">${e.desc}</option>`)); |
| 124 | } |
| 125 | } |
| 126 | |
| 127 | override putUi(value: string | number | boolean | null) { |
| 128 | this.elem.val(value?.toString() ?? ''); |
nothing calls this directly
no outgoing calls
no test coverage detected