fetch-for
v0.0.11
Published
Base class for web components as a service
Maintainers
Readme
fetch-for (🐶) [TODO]
API Documentation
Demo
fetch-for is a small-ish, bare-bones simple fetch web component.
<div itemscope=prescription-management>
<form be-reformable='{
"baseLink": "base-api-services",
"path": "med_orders/prescriptions/patient?id=zero"
}'
fetch-for-target=#prescriptions?.ish
>
</form>
<div id=prescriptions itemscope=prescriptions>
</div>
</div>fetch-for works seamlessly with be-reformable, as illustrated above but can work ith any other component/library that:
- Dispatches common event fetch-ready from the form element when the form is ready to be invoked on the client side (passes validity tests, has had a "submit" button clicked, etc).
- Checks if the form is ready for invoking on any input event ([TODO]: make this configurable)

