(errorList)
| 413 | } |
| 414 | |
| 415 | showValidationErrors (errorList) { |
| 416 | const errors = errorList ?? this.validate() |
| 417 | |
| 418 | Object.values(this.editors).forEach(editor => { |
| 419 | if (editor) { |
| 420 | editor.is_dirty = true |
| 421 | editor.showValidationErrors(errors) |
| 422 | } |
| 423 | }) |
| 424 | } |
| 425 | } |
| 426 | |
| 427 | JSONEditor.defaults = defaults |