Skip to content

0.4.0

Choose a tag to compare

@zackify zackify released this 24 Sep 18:40
· 3 commits to master since this release

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');
})