Comments (3)
Are you the only person maintaining this project? Looking this issue that you open I will suggest doing something general to components. In that way you don't need to keep up with new widgets.
For instance: here you explain how to do a custom widget and your interface widget is too simple may be need some change to support multiples inputs values and outputs (or values changes/events). I think a good one could be a native, that has events, and can be extended easily maybe a webcomponent directly.
Once that is defined, you could add angular components without caring where it comes, in this case could be the same path that we use on typescript files with import using that path as identifier.
from json-schema-form.
Thanks for your suggestion. You are right that the custom widget mechanism does not support all functionality yet. Specifically, when the JSON value is changed outside, the component does not pick up the change (can be tested by using the custom example on the playground and changing the value in the textfield). Also, the validation does not work if the custom component "owns" more than a single value. I opened an issue for this (#46).
In the WidgetComponent interface, actually, valueChange is an output and all others are inputs. I didn't add the Input / Output annotations because I have to use the dynamic component loader (https://angular.io/guide/dynamic-component-loader). This is where the inputs are passed and the output event is forwarded:
I'll also try to add a better / more meaningful example and document the component interaction better.
Does this make sense or am I missing something?
from json-schema-form.
first version. some restrictions do apply (no autocomplete, no format validation, no styling of the input component)
from json-schema-form.
Related Issues (20)
- array validation issue HOT 1
- Allow choicesUrl to include parts of the current JSON object
- More flexible tab layout
- Update to Angular 14 HOT 1
- Numeric autocomplete field shows NaN when input is empty
- Incorrect validation tooltip for `number` properties HOT 6
- Custom component interacting with the rest of the form
- Upload widget should retain file name
- Offer layouts for nested objects
- url format should support file: urls also
- Update to Angular 15 HOT 3
- Date Field Type HOT 3
- Offer the ability to change a default component
- Fix stackblitz
- implement the remaining features from the previous angular 14 version
- add peer dependencies
- Remove BrowserModule dep HOT 2
- Order property of schema is not taken into account
- fix readme
- Angular 17
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from json-schema-form.