Skip to content

Commit 4d68dc8

Browse files
committed
feat: CDataTable: add footerSlot prop
1 parent dd56a22 commit 4d68dc8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/table/CDataTable.js

+3
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ const CDataTable = props => {
2020
noItemsViewSlot,
2121
noItemsView,
2222
captionSlot,
23+
footerSlot,
2324
underTableSlot,
2425
theadTopSlot,
2526
loadingSlot,
@@ -523,6 +524,7 @@ const CDataTable = props => {
523524
}
524525
</tbody>
525526
{ footer && currentItems.length > 0 && <tfoot>{headerContent}</tfoot>}
527+
{ footerSlot }
526528
{ captionSlot }
527529
</table>
528530
{ loading &&
@@ -561,6 +563,7 @@ CDataTable.propTypes = {
561563
noItemsViewSlot: PropTypes.node,
562564
noItemsView: PropTypes.object,
563565
captionSlot: PropTypes.node,
566+
footerSlot: PropTypes.node,
564567
underTableSlot: PropTypes.node,
565568
scopedSlots: PropTypes.object,
566569
theadTopSlot: PropTypes.node,

0 commit comments

Comments
 (0)