Add rowsPerPageOptions prop support
[arvados-workbench2.git] / src / components / data-explorer / data-explorer.tsx
index 9cc1cc95fc6138d337dc3178feaf36010c661195..98f6f868c6f19defe2a3da55d4bfb46344328ce6 100644 (file)
@@ -19,6 +19,7 @@ interface DataExplorerProps<T> {
     contextActions: ContextMenuActionGroup[];
     searchValue: string;
     rowsPerPage: number;
+    rowsPerPageOptions?: number[];
     page: number;
     onSearch: (value: string) => void;
     onRowClick: (item: T) => void;
@@ -78,6 +79,7 @@ class DataExplorer<T> extends React.Component<DataExplorerProps<T> & WithStyles<
                         <TablePagination
                             count={this.props.items.length}
                             rowsPerPage={this.props.rowsPerPage}
+                            rowsPerPageOptions={this.props.rowsPerPageOptions}
                             page={this.props.page}
                             onChangePage={this.changePage}
                             onChangeRowsPerPage={this.changeRowsPerPage}