Releases: Legitcode/table
Releases · Legitcode/table
0.4.2
0.4.1
0.4.0
Added ability to hide keys, useful if each row needs to know its id for an ajax request
let modify = ({hidden}) => {
expect(hidden.id).to.be.equal(1)
}
Test(<Table rows={[{id: 1, name: 'zach'}]} hide={['id']} modifyAll={modify} />)
.find('td')
.element(td => {
expect(td.props.children).to.be.equal('zach');
})