A key feature of this extension is that we can inspect margin during website development.
47 karma · joined July 11, 2020
A key feature of this extension is that we can inspect margin during website development.
Detto (AKA Pokemon ditto) is a library which has following features:
- Not just a deep clone, you could wrap anything in any paticular nested object. - You could watch change.
See usage: https://github.com/iendeavor/detto#usage
Real world example: https://github.com/iendeavor/form-validation.js
- Not just a deep clone, you could wrap anything in any paticular nested object. - You could watch change.
See usage: https://github.com/iendeavor/detto#usage
Real world example: https://github.com/iendeavor/form-validation.js
But I've seen that it seems to provide APIs on components to deal with validations.
If we just want to validate with route query (which passed from another page and maybe wrong), or validate fields after change page/count, we always need to fill it into form component and then validate it.
Hope this post help you well .
> What problem is this resolving
A lot of validation framework doesn't pass `path` (key is not enough in complex situations) to rules to achieve cross-field validation.
> ... these days it is incredibly straightforward.
I've also read HTML5 standard validation APIs, the APIs is not easy to deal with (at least for me). for example, again, do cross-field validation.
> ... polyfill for IE.
Sorry about this, form-validation.js is based on modern javascript feature: Proxy (In order to simulate the data-structure of the form you passed in), There is no possible to provide polyfill for Promise
Hope this helps you well, I'll add some intro to READMD.md when I am free.