@@ -301,17 +301,21 @@ JSON Editor can integrate with several popular CSS frameworks out of the box.
301
301
302
302
The currently supported themes are:
303
303
304
+ * barebones
304
305
* html (the default)
305
306
* bootstrap2
306
307
* bootstrap3
307
308
* foundation3
308
309
* foundation4
309
310
* foundation5
311
+ * foundation6
310
312
* jqueryui
311
313
312
- The default theme is ` html ` , which doesn't use any special class names or styling .
314
+ The default theme is ` html ` , which does not rely on an external framework .
313
315
This default can be changed by setting the ` JSONEditor.defaults.options.theme ` variable.
314
316
317
+ If you want to specify your own styles with CSS, you can use ` barebones ` , which includes almost no classes or inline styles.
318
+
315
319
``` javascript
316
320
JSONEditor .defaults .options .theme = ' foundation5' ;
317
321
```
@@ -421,15 +425,16 @@ Simple text link
421
425
}
422
426
```
423
427
424
- Make link download when clicked (can also )
428
+ Make link download when clicked
425
429
``` js+jinja
426
430
{
427
431
"title": "Document filename",
428
432
"type": "string",
429
433
"links": [
430
434
{
435
+ "rel": "Download File",
431
436
"href": "/documents/{{self}}",
432
- // Can also specify a filename string here instead of `true`
437
+ // Can also set `download` to a string as per the HTML5 spec
433
438
"download": true
434
439
}
435
440
]
@@ -598,6 +603,7 @@ __Ace Editor__ is a syntax highlighting source code editor. You can use it by se
598
603
* ejs
599
604
* erlang
600
605
* golang
606
+ * groovy
601
607
* handlebars
602
608
* haskell
603
609
* haxe
@@ -747,7 +753,9 @@ Editors can accept options which alter the behavior in some way.
747
753
748
754
* ` collapsed ` - If set to true, the editor will start collapsed (works for objects and arrays)
749
755
* ` disable_array_add ` - If set to true, the "add row" button will be hidden (works for arrays)
750
- * ` disable_array_delete ` - If set to true, the "delete row" buttons will be hidden (works for arrays)
756
+ * ` disable_array_delete ` - If set to true, all of the "delete" buttons will be hidden (works for arrays)
757
+ * ` disable_array_delete_all_rows ` - If set to true, just the "delete all rows" button will be hidden (works for arrays)
758
+ * ` disable_array_delete_last_row ` - If set to true, just the "delete last row" buttons will be hidden (works for arrays)
751
759
* ` disable_array_reorder ` - If set to true, the "move up/down" buttons will be hidden (works for arrays)
752
760
* ` disable_collapse ` - If set to true, the collapse button will be hidden (works for objects and arrays)
753
761
* ` disable_edit_json ` - If set to true, the Edit JSON button will be hidden (works for objects)
0 commit comments