Make the method `refresh()` public

This commit is contained in:
jos 2019-01-21 20:56:50 +01:00
parent a7cc8527bd
commit c7d054406c
2 changed files with 7 additions and 0 deletions

View File

@ -10,6 +10,7 @@ https://github.com/josdejong/jsoneditor
- Implemented new option `onClassName`, allowing customized and dynamic
styling of nodes. See 20_custom_css_style_for_nodes.html for a demo.
Thanks @maestr0.
- Make the method `refresh()` public.
## 2019-01-16, version 5.27.1

View File

@ -516,6 +516,12 @@ Get the current selected text with the selection range, Only applicable for mode
- `{start:{row:Number, column:Number},end:{row:Number, column:Number},text:String} selection`
#### `JSONEditor.refresh()`
Force the editor to refresh the user interface and update all rendered HTML. This can be useful for example when using `onClassName` and the returned class name depends on external factors.
#### `JSONEditor.set(json)`
Set JSON data.