![]() enum_titles - An array of display values to use for select box options in the same order as defined with the enum keyword.disable_properties - If set to true, the Edit Properties button will be hidden (works for objects).disable_edit_json - If set to true, the Edit JSON button will be hidden (works for objects).disable_collapse - If set to true, the collapse button will be hidden (works for objects and arrays).disable_array_reorder - If set to true, the "move up/down" buttons will be hidden (works for arrays).disable_array_delete_last_row - If set to true, just the "delete last row" buttons will be hidden (works for arrays).disable_array_delete_all_rows - If set to true, just the "delete all rows" button will be hidden (works for arrays).disable_array_delete - If set to true, all of the "delete" buttons will be hidden (works for arrays).disable_array_add - If set to true, the "add row" button will be hidden (works for arrays).collapsed - If set to true, the editor will start collapsed (works for objects and arrays).Listen for the ready event before calling them.Įditors can accept options which alter the behavior in some way. *Note If the ajax property is true and JSON Editor needs to fetch an external url, the api methods won't be available immediately. If true, only required properties will be included by default. See the CSS Integration section below for more info. See the Templates and Variables section below for more info. This should be valid against the editor's schema. Valid values are interaction, change, always, and never. When to show validation errors in the UI. Version 3 and Version 4 of the draft specification are supported. If true, makes oneOf copy properties over when switching.Ī valid JSON Schema to use for the editor. If true, all schemas that don't explicitly set the required property will be required. Allows you to pre-define external schemas. If true, objects can only contain properties defined with the properties keyword.Īn object containing schema definitions for URLs. An full example name is `root` where "root" is the form_name_root. The first part of the `name` attribute of form inputs in the editor. If true, remove all Edit Properties buttons from objects. If true, remove all Edit JSON buttons from objects. If true, remove all collapse buttons from objects and arrays. If true, remove all "move up" and "move down" buttons from arrays. If true, remove all "delete row" buttons from arrays. If true, remove all "add row" buttons from arrays. If true, JSON Editor will load external URLs in $ref via ajax. Here are all the available options: Option For more under-the-hood documentation, check the wiki. The rest of this README contains detailed documentation about every aspect of JSON Editor. If you learn best by example, check these out: math.js for more accurate floating point math (multipleOf, divisibleBy, etc.).Selectize for nicer Select & Array boxes.EpicEditor for editing of Markdown content.SCEditor for WYSIWYG editing of HTML or BBCode content.A compatible icon library (bootstrap 2/3 glyphicons, foundation icons 2/3, jqueryui, or font awesome 3/4).A compatible CSS framework for styling (bootstrap 2/3, foundation 3/4/5, or jqueryui).A compatible JS template engine (Mustache, Underscore, Hogan, Handlebars, Swig, Markup, or EJS).The following are not required, but can improve the style and usability of JSON Editor when present. It only needs a modern browser (tested in Chrome and Firefox). It has full support for JSON Schema version 3 and 4 and can integrate with several popular CSS frameworks (bootstrap, foundation, and jQueryUI).Ĭheck out an interactive demo (demo.html): ĭownload the production version (22K when gzipped) or the development version. JSON Editor takes a JSON Schema and uses it to generate an HTML form.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |