Open brettz9 opened 10 years ago
A singular advantage you'd have in a schema-aware read-only generator, especially (but not exclusively) for tables, that might not be obvious is that you could, for example, add controls which allowed type-aware filtering, e.g., providing:
LIKE %...%
searches in SQL with an optional checkbox to filter by regex.The above controls might be exposed at the top of columns and/or as a separate dialog (a separate dialog would also allow more intelligent filtering like combining AND/OR filters across columns, whereas the inline controls might assume AND filtering by default).
I think this approach using JSON Schema would be preferable to that of using one-off and mutually incompatible table editors.
I understand this may be well beyond the scope of your intended project, but I wanted to offer some ideas on possibilities given that I feel like there really needs to be a generic, type-aware way to display structured information, especially tabular, so that the likes of a type-aware wiki could be built with all manner of customization available on the view.
+1 this would be a great addition IMO.
@jdorn would you accept a pull request which implements this functionality or do you think this is out of scope?
+1
Although I know this is JSON Editor, I think it would be incredibly useful to be able to generate views out of JSON, guided by the schema and by your custom options/properties (e.g., utilizing
format: "table"
to generate a table). I am not looking for merely disabling form elements on an existing editor, but rather, intelligently displaying the content without extraneous controls, but with some minimal awareness of type (e.g., at least to support tables and provide classes for each type). A string withformat: "url"
could be displayed as a functional link, etc.