jsoneditor/test
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
..
Node.test.js Fix Node._findSchema bug when path is not present in schema 2019-03-15 15:29:08 -04:00
couchdbeditor.html Using brace to load Ace. Ace and jsonlint are now packed by default with JSONEditor. Removed all redundant build stuff for the assets. 2015-02-27 21:54:04 +01:00
largefile.json first commit 2012-04-21 13:28:28 +02:00
setup.js Provide Navigator and allow locale override in test environment setup 2019-03-04 16:09:52 -05:00
test_bootstrap.html Updated history and bootstrap test file 2016-04-11 21:42:38 +02:00
test_build.html Publish v5.26.2 2018-11-13 20:39:02 +01:00
test_build_min.html Implement color picker. Expose `VanillaPicker`, `ace`, and `Ajv`. 2018-08-22 12:10:15 +02:00
test_color_picker.html Fixed `onClose` of color picker not always being fired 2018-08-29 21:10:13 +02:00
test_destroy.html Added some test pages 2016-03-20 15:56:28 +01:00
test_large_array.html Some more fixes around #558 2018-08-02 10:43:12 +02:00
test_materialize.html Fixed #289: Some CSS breaking when using the editor in combination with materialize.css or bootstrap 2016-04-09 20:55:07 +02:00
test_minimalist_min.html Implement color picker. Expose `VanillaPicker`, `ace`, and `Ajv`. 2018-08-22 12:10:15 +02:00
test_schema.html Add examples to test_schema.html 2019-03-07 20:50:05 +01:00
test_update.html Impelemented `updateText` 2018-08-06 10:27:57 +02:00
util.test.js Display schema defaults inline next to Nodes (#666) 2019-03-17 15:39:00 +01:00