From 76129884725e16b07dfe8922cab6da8d637a953e Mon Sep 17 00:00:00 2001 From: Alexis Georges Date: Sun, 19 May 2019 15:59:09 +0200 Subject: [PATCH] feat(stark-ui): table - Add support to show rows counter ISSUES CLOSED: #1244 --- .../table/components/_table.component.scss | 7 ++ .../table/components/table.component.html | 6 + .../table/components/table.component.spec.ts | 115 +++++++++++++++--- .../table/components/table.component.ts | 20 +++ .../table-regular.component.html | 1 + .../assets/examples/table/regular/table.html | 1 + 6 files changed, 136 insertions(+), 14 deletions(-) diff --git a/packages/stark-ui/src/modules/table/components/_table.component.scss b/packages/stark-ui/src/modules/table/components/_table.component.scss index e22f85f954..75d8ca88ef 100644 --- a/packages/stark-ui/src/modules/table/components/_table.component.scss +++ b/packages/stark-ui/src/modules/table/components/_table.component.scss @@ -30,6 +30,13 @@ } } } + + .stark-table-rows-counter { + flex: 1; + text-align: center; + line-height: 35px; + margin-right: 16px; + } } .table-container { diff --git a/packages/stark-ui/src/modules/table/components/table.component.html b/packages/stark-ui/src/modules/table/components/table.component.html index eb3f1f0b38..48e3216ee4 100644 --- a/packages/stark-ui/src/modules/table/components/table.component.html +++ b/packages/stark-ui/src/modules/table/components/table.component.html @@ -11,6 +11,12 @@ mode="compact" > + +
+ {{ data.length }} + STARK.TABLE.ITEMS_FOUND +
+