Skip to content

define schema as separated json file and uses HTML5 input types like json-editor #89

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
majj opened this issue Sep 7, 2014 · 1 comment

Comments

@majj
Copy link

majj commented Sep 7, 2014

JSON Editor supports schema references to external URLs and local definitions.
such as:
"$ref": "#/definitions/name.json"

HTML5 input types:
color, support by firefox, chrome now
datetime-local, support by chrome
...

@majj majj changed the title define schema as separated json file like json-editor define schema as separated json file and uses HTML5 input types like json-editor Sep 7, 2014
@davidlgj
Copy link
Contributor

davidlgj commented Sep 8, 2014

Hi @majj,

HTML Input types is already supported, basically whatever you set as a form type becomes the `type``attribute of an input if no other match is found.

ex.

$scope.form = [
{
  key: "age",
  type: "number"
}
];

Regarding support for $ref its on the todo list, see #69

@davidlgj davidlgj closed this as completed Sep 8, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants