|
|
@ -95,6 +95,7 @@ class VirtualTable extends Component {
|
|
|
|
className,
|
|
|
|
className,
|
|
|
|
items,
|
|
|
|
items,
|
|
|
|
scroller,
|
|
|
|
scroller,
|
|
|
|
|
|
|
|
focusScroller,
|
|
|
|
header,
|
|
|
|
header,
|
|
|
|
headerHeight,
|
|
|
|
headerHeight,
|
|
|
|
rowRenderer,
|
|
|
|
rowRenderer,
|
|
|
@ -135,6 +136,7 @@ class VirtualTable extends Component {
|
|
|
|
<Scroller
|
|
|
|
<Scroller
|
|
|
|
className={className}
|
|
|
|
className={className}
|
|
|
|
scrollDirection={scrollDirections.HORIZONTAL}
|
|
|
|
scrollDirection={scrollDirections.HORIZONTAL}
|
|
|
|
|
|
|
|
autoFocus={focusScroller}
|
|
|
|
>
|
|
|
|
>
|
|
|
|
{header}
|
|
|
|
{header}
|
|
|
|
<div ref={registerChild}>
|
|
|
|
<div ref={registerChild}>
|
|
|
@ -179,6 +181,7 @@ VirtualTable.propTypes = {
|
|
|
|
items: PropTypes.arrayOf(PropTypes.object).isRequired,
|
|
|
|
items: PropTypes.arrayOf(PropTypes.object).isRequired,
|
|
|
|
scrollIndex: PropTypes.number,
|
|
|
|
scrollIndex: PropTypes.number,
|
|
|
|
scroller: PropTypes.instanceOf(Element).isRequired,
|
|
|
|
scroller: PropTypes.instanceOf(Element).isRequired,
|
|
|
|
|
|
|
|
focusScroller: PropTypes.bool.isRequired,
|
|
|
|
header: PropTypes.node.isRequired,
|
|
|
|
header: PropTypes.node.isRequired,
|
|
|
|
headerHeight: PropTypes.number.isRequired,
|
|
|
|
headerHeight: PropTypes.number.isRequired,
|
|
|
|
rowRenderer: PropTypes.func.isRequired
|
|
|
|
rowRenderer: PropTypes.func.isRequired
|
|
|
@ -186,7 +189,8 @@ VirtualTable.propTypes = {
|
|
|
|
|
|
|
|
|
|
|
|
VirtualTable.defaultProps = {
|
|
|
|
VirtualTable.defaultProps = {
|
|
|
|
className: styles.tableContainer,
|
|
|
|
className: styles.tableContainer,
|
|
|
|
headerHeight: 38
|
|
|
|
headerHeight: 38,
|
|
|
|
|
|
|
|
focusScroller: true
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
export default VirtualTable;
|
|
|
|
export default VirtualTable;
|
|
|
|