* Sets the value of the given field for this block. * * @param newValue The value to set. * @param name The name of the field to set the value of.
(newValue: AnyDuringMigration, name: string)
| 1234 | * @param name The name of the field to set the value of. |
| 1235 | */ |
| 1236 | setFieldValue(newValue: AnyDuringMigration, name: string) { |
| 1237 | const field = this.getField(name); |
| 1238 | if (!field) { |
| 1239 | throw Error('Field "' + name + '" not found.'); |
| 1240 | } |
| 1241 | field.setValue(newValue); |
| 1242 | } |
| 1243 | |
| 1244 | /** |
| 1245 | * Set whether this block can chain onto the bottom of another block. |
no test coverage detected