1.0.24 • Published 7 years ago
sg-item-list v1.0.24
sg-item-list
Abstracted implementation of a react-virtualized autosizeing List
Install
npm install --save sg-item-list
Usage
import React, { Component } from 'react'
import ItemList from 'sg-item-list'
const items = ["item 1","item 2","item 3"];
class Example extends Component {
constructor(props){
super(props);
this.renderRow = this.renderRow.bind(this);
}
renderRow(index, maximized, item, event) {
return (
<div>
<div>Item number {index}</div>
<div>
item is the model of the data you want to render
</div>
<div>
maximized tells if the row should be maximized
</div>
<div>
event is the event to call if the edit button has been clicked
</div>
</div>
);
}
render () {
return (
<ItemList list={items} itemRender={this.renderRow} />
)
}
}
Version Info
1.0.6
- Added update property.
1.0.5
- Added forceUpdate function.
1.0.4
- Fixed css width issue.
1.0.3
- Fixed css issue.
1.0.2
- Nothing Major
1.0.1
- Fixed issue where ItemList wasn't the default export.
1.0.0
Initial release.
License
1.0.24
7 years ago
1.0.23
7 years ago
1.0.22
7 years ago
1.0.21
7 years ago
1.0.20
7 years ago
1.0.19
7 years ago
1.0.18
7 years ago
1.0.17
7 years ago
1.0.16
7 years ago
1.0.15
7 years ago
1.0.14
7 years ago
1.0.12
7 years ago
1.0.11
7 years ago
1.0.10
7 years ago
1.0.9
7 years ago
1.0.8
7 years ago
1.0.7
7 years ago
1.0.6
7 years ago
1.0.5
7 years ago
1.0.4
7 years ago
1.0.3
7 years ago
1.0.2
7 years ago
1.0.1
7 years ago
1.0.0
7 years ago