From 3eab9b468961c132d3e06615b13b858a14b772f9 Mon Sep 17 00:00:00 2001 From: Blair2004 Date: Fri, 7 May 2021 11:07:31 +0100 Subject: [PATCH] Update - Added : label on crud table to see the items displayed and total items available --- resources/ts/components/ns-crud.ts | 36 ++++++++++++++++++------------ 1 file changed, 22 insertions(+), 14 deletions(-) diff --git a/resources/ts/components/ns-crud.ts b/resources/ts/components/ns-crud.ts index 0f2100d97..9cfac2c40 100755 --- a/resources/ts/components/ns-crud.ts +++ b/resources/ts/components/ns-crud.ts @@ -76,6 +76,11 @@ const nsCrud = Vue.component( 'ns-crud', { return `&page=${this.page}` } return ''; + }, + resultInfo() { + return __( 'displaying {perPage} on {items} items' ) + .replace( '{perPage}', this.result.total ) + .replace( '{items}', this.result.total ) } }, methods: { @@ -339,24 +344,27 @@ const nsCrud = Vue.component( 'ns-crud', {
- +
-