All Projects → rodikh → angular-json-editor

rodikh / angular-json-editor

Licence: MIT License
An angular wrapper for jdorn/json-editor

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to angular-json-editor

format-to-json
An algorithm that can format a string to json-like template. 字符串JSON格式化的算法。
Stars: ✭ 30 (-67.74%)
Mutual labels:  json-editor, json-schema
MOSP
A collaborative platform for creating, editing and sharing JSON objects.
Stars: ✭ 72 (-22.58%)
Mutual labels:  json-editor, json-schema
Minecraft-bedrock-json-schemas
The JSON validation schema files for Minecraft bedrock
Stars: ✭ 17 (-81.72%)
Mutual labels:  json-schema
Maat
Validation and transformation library powered by deductive ascending parser. Made to be extended for any kind of project.
Stars: ✭ 27 (-70.97%)
Mutual labels:  json-schema
json-schema-migrate
Migrate JSON-Schema draft-04 to draft-07, draft-2019-09 or draft-2020-12
Stars: ✭ 18 (-80.65%)
Mutual labels:  json-schema
sf-java-ui
Json Schema Form java based library allow developers to define schema and form using field annotations
Stars: ✭ 23 (-75.27%)
Mutual labels:  json-schema
ontology
Global Insurance Ontology
Stars: ✭ 71 (-23.66%)
Mutual labels:  json-schema
hull
The incredible HULL - Helm Uniform Layer Library - is a Helm library chart to improve Helm chart based workflows
Stars: ✭ 66 (-29.03%)
Mutual labels:  json-schema
statham-schema
Statham is a Python Model Parsing Library for JSON Schema.
Stars: ✭ 21 (-77.42%)
Mutual labels:  json-schema
phpunit-json-assertions
JSON assertions for PHPUnit (including JSON Schema)
Stars: ✭ 30 (-67.74%)
Mutual labels:  json-schema
jsed
command line JSON editor
Stars: ✭ 56 (-39.78%)
Mutual labels:  json-editor
jsons2xsd
Highly configurable converter from JSON-schema to XML-schema (XSD).
Stars: ✭ 65 (-30.11%)
Mutual labels:  json-schema
schema
SpaceAPI JSON schema files.
Stars: ✭ 20 (-78.49%)
Mutual labels:  json-schema
sql-ddl-to-json-schema
SQL DDL to JSON Schema Converter
Stars: ✭ 138 (+48.39%)
Mutual labels:  json-schema
element-schema-form
A schema-based element-ui form component for Vue2.x.
Stars: ✭ 31 (-66.67%)
Mutual labels:  json-schema
php-json-schema-model-generator
Creates (immutable) PHP model classes from JSON-Schema files including all validation rules as PHP code
Stars: ✭ 36 (-61.29%)
Mutual labels:  json-schema
flowjv
Flow based approach to JSON validation.
Stars: ✭ 20 (-78.49%)
Mutual labels:  json-schema
jsonschema-generator
Java JSON Schema Generator – creating JSON Schema (Draft 6, Draft 7, Draft 2019-09, or Draft 2020-12) from Java classes
Stars: ✭ 213 (+129.03%)
Mutual labels:  json-schema
universal-json-schema
📜 Universal JSON Schema Form - Currently Support for React - Material UI components for building Web forms from JSON Schema.
Stars: ✭ 102 (+9.68%)
Mutual labels:  json-schema
JBOL
JBOL is a collection of modules for the JQ language.
Stars: ✭ 56 (-39.78%)
Mutual labels:  json-schema

JSON Editor Angular directive

A directive that wraps jdorn's json-editor.

JSON Editor takes a JSON Schema and uses it to generate an HTML form.

For further information about supported schema properties and usage, check out the original json-editor.

Requirements

The module doesn't include the original json-editor code, but it is included in it's bower dependencies.

Installation

Install via bower

bower install angular-json-editor --save

Then include the directive and json-editor in your html (you can also use the minified versions)

<script src="bower_components/json-editor/dist/jsoneditor.js"></script>
<script src="bower_components/angular-json-editor/dist/angular-json-editor.js"></script>

Usage

The directive supports both synchronous and asynchronous values, all values can be either a scope object, or a promise returned from $q, $http, $timeout, $resource etc. Please check out demo/index.html and demo/app.js for an example usage of both scenarios.

Validation

The directive exposes an isValid property on the scope, which can be used to enable/disable show/hide buttons using ng-disabled/ng-enabled or ng-hide/ng-show.

<button type="button" ng-disabled="!isValid">Button 1</button>

Events

The directive allows you to pass a callback function through the on-change attribute that will be called whenever a change event is fired on the editor.

    <json-editor schema="mySchema" startval="myStartVal" buttons-controller="SyncButtonsController" on-change="onChange()">

Configuration and Plugins

Configuring the JSONEditor object for plugins and styling is possible by injecting the JSONEditorProvider to your config function and calling the configure method. The object you pass to configure will be merged with the JSONEditor object.

    angular.module('demoApp', ['angular-json-editor']).config(function (JSONEditorProvider) {
        JSONEditorProvider.configure({
            plugins: {
                sceditor: {
                    style: 'sce/development/jquery.sceditor.default.css'
                }
            },
            defaults: {
                options: {
                    iconlib: 'bootstrap3',
                    theme: 'bootstrap3',
                    ajax: true
                }
            }
        }); 
    });

Building

Clone the project, install bower and npm dependencies by running

bower install && npm install

If you dont have grunt-cli installed globally run npm install -g grunt-cli

Then run grunt and look in the dist folder.

The MIT License (MIT)

Copyright (c) 2015 Rodik Hanukaev

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].