I am using version 5.6.0
Is there anyway to easily customize the scrolling UI for a react-table?
i.e.:
No - nothing like that is available. It's lightweight. If you can achieve it with CSS and not break the layout then that is probably the only answer.
@Apofenic you can do it pretty easily, unless version 5.6 has no TbodyComponent property
use TbodyComponent to assign you body:
<ReactTable TbodyComponent={this.props.bodyComponent} />
and than in bodyComponent use custom scrollbar to wrap it (in example below scrollbars from react-custom-scrollbars library):
bodyComponent(tableState) {
return <Scrollbars style={{height: 500}}>
<div className='my-tbody-class'>
{tableState.children}
</div>
</Scrollbars>
}
thanks guys ill give it a shot
@Apofenic you can do it pretty easily, unless version 5.6 has no TbodyComponent property
use TbodyComponent to assign you body:
<ReactTable TbodyComponent={this.props.bodyComponent} />and than in bodyComponent use custom scrollbar to wrap it (in example below scrollbars from react-custom-scrollbars library):
bodyComponent(tableState) { return <Scrollbars style={{height: 500}}> <div className='my-tbody-class'> {tableState.children} </div> </Scrollbars> }
One thing to remember is you need to use the default class (rt-tbody) as well for the custom component. Otherwise, it would bring a sleuth of broken CSS rules into the table.
Most helpful comment
@Apofenic you can do it pretty easily, unless version 5.6 has no TbodyComponent property
use TbodyComponent to assign you body:
<ReactTable TbodyComponent={this.props.bodyComponent} />and than in bodyComponent use custom scrollbar to wrap it (in example below scrollbars from react-custom-scrollbars library):
bodyComponent(tableState) { return <Scrollbars style={{height: 500}}> <div className='my-tbody-class'> {tableState.children} </div> </Scrollbars> }