Package Exports
- rijs.needs
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.needs) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Ripple | Needs
Extends the rendering pipeline to apply default attributes defined for a component.
General syntax for the needs header is:
needs: [attr1=value2][attr2=value3 value4]Most components have their own default base CSS. Instead of requiring consumers to add this, specifying the following header in the resource defintion will always load the component's CSS (the value here conventionally defaults to component-name.css):
needs: '[css]'Components within an application may also require certain data resources:
needs: '[data=foo]'The value of attributes are extended rather than overwritten. So a consumer can still specify any attributes which may modify the behaviour of the component, but will not need to also add the essential attributes the component itself always requires.