zavadil-react-common 1.1.1 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -82,7 +82,7 @@ export function AdvancedTable({hover, striped, header, children, paging, totalPa
|
|
|
82
82
|
paginationItems.push(<Pagination.Last key="last" onClick={() => pageChanged(totalPages - 1)} disabled={paging.page === (totalPages - 1)}/>);
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
const pagination = <div className="
|
|
85
|
+
const pagination = <div className="p-1 d-flex justify-content-between align-items-center">
|
|
86
86
|
<div>Page: {paging.page + 1} / {totalPages}</div>
|
|
87
87
|
<Pagination size="sm" className="flex-wrap">{paginationItems}</Pagination>
|
|
88
88
|
<div>Total Items: {totalItems}</div>
|
|
@@ -90,9 +90,11 @@ export function AdvancedTable({hover, striped, header, children, paging, totalPa
|
|
|
90
90
|
|
|
91
91
|
return (
|
|
92
92
|
<div>
|
|
93
|
-
{pagination}
|
|
94
93
|
<Table hover={hover} striped={striped} responsive bordered>
|
|
95
94
|
<thead>
|
|
95
|
+
<tr>
|
|
96
|
+
<td colSpan={header.length}>{pagination}</td>
|
|
97
|
+
</tr>
|
|
96
98
|
<tr>
|
|
97
99
|
{
|
|
98
100
|
header.map(
|
|
@@ -121,8 +123,12 @@ export function AdvancedTable({hover, striped, header, children, paging, totalPa
|
|
|
121
123
|
<tbody>
|
|
122
124
|
{children}
|
|
123
125
|
</tbody>
|
|
126
|
+
<tfoot>
|
|
127
|
+
<tr>
|
|
128
|
+
<td colSpan={header.length}>{pagination}</td>
|
|
129
|
+
</tr>
|
|
130
|
+
</tfoot>
|
|
124
131
|
</Table>
|
|
125
|
-
{pagination}
|
|
126
132
|
</div>
|
|
127
133
|
);
|
|
128
134
|
}
|