1.2.0 • Published 4 years ago
@riot-material/rm-list v1.2.0
list container component based on Material Design for riot-material
Installation
You can install it via nodejs
npm install @riot-material/rm-listor download one of the bundled file
/**
* `dist/index.js`
* `dist/index+libs.js`
*/
requirejs.config({
paths: {
"@riot-material/rm-list": "path/to/@riot-material/rm-list",
},
});
require(['@riot-material/rm-list'], function (ListComponent) {
// ...
});
/**
* `dist/index.es.js`
* npm installation
*/
import ListComponent from "@riot-material/rm-list";otherwise you can include the script in your project html
<script src="@riot-material/rm-list/index.js" />
<!-- or -->
<script src="@riot-material/rm-list/index+libs.js" />and access it via
window.riotMaterial.components.listItem;Note: all the bundled file having +libs contain also the dependencies needed by the component, which, in this case, are:@riot-material/rippletabbable
Be sure to have them when installing manually or including via html