Package Exports
- rijs.components
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (rijs.components) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Ripple | Components
Renders Web Components. Given the following markup on your page:
<component-name data="something">With a component-name (function) and something (data) registered in Ripple, it will invoke component-name.call(<el>, something) whenever a change is detected in either of those resources. Internally, this is basically implemented as follows but in a more generic form:
ripple('something').on('change', function(){
all('[data=something]')
.map(ripple.draw)
})Browsers natively supporting Custom Elements will have them upgraded automatically, modern browsers will reactively update using MutationObservers and older browsers will use polling. You can also manually invoke renders:
ripple.draw(<el> | resource object | resource name)If the first parameter is a DOM element, it will rerender that. If it is a resource (name or object), it will rerender anything on your page that depends on that resource.