react-toolbox/components/list
Javi Velasco be1bde6ef5 Some fixes and include extract text webpack plugin 2015-10-29 13:40:12 +01:00
..
_config.scss Setup new file structure for sass files 2015-10-20 21:15:21 +02:00
checkbox.jsx Add some missing semicolons 2015-10-22 10:02:36 +02:00
content.jsx use es6 classes & remove react-addons-pure-render-mixin 2015-10-20 13:40:51 +08:00
divider.jsx Add basic list component 2015-10-19 02:38:25 +02:00
index.jsx Add basic list component 2015-10-19 02:38:25 +02:00
item.jsx Some fixes and include extract text webpack plugin 2015-10-29 13:40:12 +01:00
list.jsx Babel to stage 2 and remove decorators 2015-10-22 01:31:17 +02:00
readme.md Rename component doc to readme.md 2015-10-28 22:09:09 +07:00
style.scss Some fixes and include extract text webpack plugin 2015-10-29 13:40:12 +01:00
subheader.jsx Add sidebar and better layout for documentation 2015-10-29 01:04:59 +01:00

readme.md

List

var List = require('react-toolbox/components/list');
var data = [];
var template = function(data) {
  <a href=/item/{data.id}>{data.name}</a>
};

<List dataSource={data} ItemFactory={template} />

Properties

Name Type Default Description
className String Sets the class-styles of the Component.
dataSource Array required JSON data representing all items in the list.
ItemFactory Function required Callback who contains the item data representation.
onClick Function Dispatch event when user clicks on any item sub-component.
type String Type of the component, overwrite this property if you need set a different stylesheet.