(fieldName: string, value: string)
| 32 | } |
| 33 | |
| 34 | setValue(fieldName: string, value: string) { |
| 35 | for (const valueEntry of this.getValues().children as DataEntrySplootNode[]) { |
| 36 | if (valueEntry.getFieldName() === fieldName) { |
| 37 | valueEntry.setValue(value) |
| 38 | return |
| 39 | } |
| 40 | } |
| 41 | this.getValues().addChild(new SplootDataStringEntry(null, fieldName, value)) |
| 42 | } |
| 43 | |
| 44 | getValuesAsList(order: string[]) { |
| 45 | // Returns a list of the form [{value: x}, ...] |
no test coverage detected