1.0.24 • Published 5 years ago

sg-item-list v1.0.24

Weekly downloads
2
License
MIT
Repository
-
Last release
5 years ago

sg-item-list

Abstracted implementation of a react-virtualized autosizeing List

NPM JavaScript Style Guide

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

MIT ©

1.0.24

5 years ago

1.0.23

5 years ago

1.0.22

5 years ago

1.0.21

5 years ago

1.0.20

5 years ago

1.0.19

5 years ago

1.0.18

5 years ago

1.0.17

5 years ago

1.0.16

5 years ago

1.0.15

5 years ago

1.0.14

5 years ago

1.0.12

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago