Commit Graph

94 Commits

Author SHA1 Message Date
jos 72455e3302 Describe new mode `preview` in docs 2019-07-24 14:00:39 +02:00
Gcaufy 85e0710097 Feat: Added filter and trigger options for autocomplete (#713)
* Feat: Added filter options for autocomplete

* Feat: added trigger option for autocomplete

* Fix: const/let => var
2019-06-08 11:37:52 +02:00
jos a9abad2cd4 Fix #698 `node.path` sometimes null in `onCreateMenu` 2019-05-29 16:29:29 +02:00
Adam Vigneaux c79bea4eb8 Display schema defaults inline next to Nodes (#666)
* Display schema defaults inline next to Nodes

* Improve usability of schema default display

- When value is default, make it bold and set a tooltip
- When value is not default, display the default next to the value
- When value is default and is a select, show "Default" next to it
- Lighten the color of green used for values
  This increases the contrast between normal values and default values.

* Remove styling when value is the same as the schema default

This styling may have been confusing for some users and may not have
been applicable to all situations.

* Apply is-default and is-not-default classes to values

This allows the user to supply custom styling for these states.

To set styles for values that match the default value in the schema, use
the class `.jsoneditor-is-default`.

To set styles for values that _do not_ match the default value in the
schema, use the class `.jsoneditor-is-not-default`.

* Remove extra newline after schema examples in tooltip

* Move schema default display from inline to tooltip

This presents less opportunity for user confusion and is likely to be
more widely applicable.

* Add examples of schema metadata display

* Add documentation on styling
2019-03-17 15:39:00 +01:00
jos 1acd2d6116 Describe `onClassName` in the docs 2019-03-11 20:14:55 +01:00
RobAley edca7a7a62
update oncreatemenu to change path to object 2019-02-25 16:05:54 +00:00
RobAley b801affd9c
added onCreateMenu docs 2019-02-21 14:48:34 +00:00
jos 5098095e86 Update docs 2019-02-09 13:05:53 +01:00
jos c7d054406c Make the method `refresh()` public 2019-01-21 20:56:50 +01:00
Ben Chadwick a20908f462 Configurable max visible childs (#630)
* repair branch; undo childs->children change; make getMaxVisibleChilds a fn

* address PR comment
2019-01-16 17:47:08 +01:00
jos b59da1a5c9 Describe `onNodeName` in docs (see #617) 2019-01-05 15:15:33 +01:00
Tanmay Rajani d7551da7e6 Create option to hide the blue main menu bar on top (#596)
* ability to hide main menu bar; minor fixes for typos, JSDoc etc.

* fix CSS issue when mainMenuBar is hidden in all modes; other minor refactoring
2018-11-12 20:11:09 +01:00
Tanmay Rajani 6403c0bd17 Adds ability to hide sort and transform options (#588)
* adds ability to hide sort and transform buttons

* adds new options to API doc

* cover context-menu sort, transform options; remove negations

* update readme wordings
2018-10-18 20:42:02 +02:00
Jos de Jong 9ae7c22286
Fixed #574: removed outdated ways to install `jsoneditor` 2018-08-28 20:14:41 +02:00
jos f913d4e08a Implemented `timestampTag` 2018-08-22 18:00:56 +02:00
jos b853ec3f64 Implement color picker. Expose `VanillaPicker`, `ace`, and `Ajv`. 2018-08-22 12:10:15 +02:00
jos f11f763171 Implemented support for async custom validation 2018-08-15 12:21:27 +02:00
jos 8bb2962505 Implemented support for custom validation 2018-08-15 10:48:51 +02:00
jos 13bb4d7bb1 Merge branch 'extendEvent' of https://github.com/cristinabarrantes/jsoneditor into cristinabarrantes-extendEvent
# Conflicts:
#	package.json
#	src/js/JSONEditor.js
2018-08-13 20:53:03 +02:00
Cristina bb699e1473 Update documentation 2018-08-10 12:29:25 +02:00
jos 983fafdf9c Implemented options `onChangeJSON(json)` and `onChangeText(jsonString)` 2018-08-07 11:03:27 +02:00
jos 54cae20630 Implement a simple React demo 2018-08-06 17:10:07 +02:00
jos d49518a9ba Describe new methods `update` and `updateText` in the docs 2018-08-06 14:39:21 +02:00
jos a7da2349e5 Order methods in docs alphabetically 2018-08-06 14:30:44 +02:00
Cristina ef74ede75e Use extended path with type for onEvent 2018-07-26 01:48:03 +02:00
Cristina 9de11c04cd Changes due to PR. 2018-07-16 16:52:41 +02:00
Cristina ecd9bf021f Add API functionality to extend event behaviour. 2018-07-02 13:13:02 +02:00
jos 463276a3d9 Implemented `modalAnchor` 2018-06-20 20:27:36 +02:00
Jos de Jong 63d8280e85
Merge pull request #504 from meirotstein/get_caret_position
API for caret selection
2018-04-26 22:40:57 +02:00
Meir Rotstein 1a66dbcedd (1) onTextSelectionChange: change params order (2) getSelection: empty selection 2018-04-26 22:19:35 +03:00
Meir Rotstein e80a840a33 additional fixes + docu 2018-04-22 10:02:17 +03:00
Meir Rotstein 1579e787bf CR Fix: remove `field` from SerializedNode 2018-04-19 09:24:07 +03:00
Dmitry Kulikov b826ee398b Fixed typos. 2018-04-11 21:54:04 +06:00
Meir Rotstein e1f91cb1ac some minor fixes & docu 2018-04-02 11:18:32 +03:00
Meir Rotstein 3b186633e7 Merge branch 'develop' of https://github.com/josdejong/jsoneditor into get_caret_position
# Conflicts:
#	docs/api.md
#	src/js/Node.js
#	src/js/treemode.js
2018-04-02 02:07:53 +03:00
Meir Rotstein e57c292f30 Add treenode.getNodesByRange 2018-04-02 02:01:22 +03:00
Meir Rotstein 39e8d36f72 CR Fix: tree selection - use serializable node as parameters 2018-04-02 01:40:10 +03:00
Meir Rotstein 7e90161057 CR fix: setSelection signature and doc change 2018-03-01 23:05:27 +02:00
Meir Rotstein fb85ffdd5b CR fix - remove 'Node' from node selection function signatures 2018-03-01 22:49:08 +02:00
jos 9fb29a644d Refactor to ES5 code. Some updates in the docs 2018-02-25 19:54:59 +01:00
Mario Mol 466c2c548b Support for overriding translations and for setting one language 2018-02-21 13:58:50 -03:00
Meir Rotstein 242f3fc3a4 Selection API - docu 2018-01-26 01:25:17 +02:00
Meir Rotstein 0a2d113e56 Update api.md for cursor position in text mode 2017-12-27 14:02:00 +02:00
Israel f2492e32dc caseSensitive option added to autocomplete 2017-12-02 13:30:44 -05:00
Israel 168a65cda4 Revert "caseSensitive option added to autocomplete"
This reverts commit 89601c3115.
2017-12-02 13:23:03 -05:00
Israel 89601c3115 caseSensitive option added to autocomplete 2017-12-02 04:44:25 -05:00
Meir Rotstein 9c78ea7959 update doc 2017-09-18 18:49:54 +03:00
Meir Rotstein b4e053030b rename option: treePath -> navigationBar 2017-09-13 22:31:26 +03:00
Meir Rotstein b36df94cfe document treePath in api.md 2017-09-03 13:54:55 +03:00
jos ea6b71986c Cleanup some unused code. Minor update in the readme and examples 2017-08-20 22:06:34 +03:00