innoboxrr-vue-datatable 1.1.1 → 1.1.3
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
package/src/DataTable.vue
CHANGED
|
@@ -131,6 +131,7 @@
|
|
|
131
131
|
:actions="hasActions"
|
|
132
132
|
:data-table="dataTable"
|
|
133
133
|
:extra-params="extraParams"
|
|
134
|
+
:show-table-header="showTableHeader"
|
|
134
135
|
@sortColumn="sortColumn"
|
|
135
136
|
@actionButtonClicked="actionButtonClicked"
|
|
136
137
|
@actionClicked="actionClicked" />
|
|
@@ -197,6 +198,11 @@
|
|
|
197
198
|
required: true
|
|
198
199
|
},
|
|
199
200
|
|
|
201
|
+
policyMethod: {
|
|
202
|
+
type: String,
|
|
203
|
+
default: 'post'
|
|
204
|
+
},
|
|
205
|
+
|
|
200
206
|
showTopbar:{
|
|
201
207
|
type: Boolean,
|
|
202
208
|
default: true
|
|
@@ -235,6 +241,11 @@
|
|
|
235
241
|
cardWrapper: {
|
|
236
242
|
type: Boolean,
|
|
237
243
|
default: true
|
|
244
|
+
},
|
|
245
|
+
|
|
246
|
+
showTableHeader: {
|
|
247
|
+
type: Boolean,
|
|
248
|
+
default: true,
|
|
238
249
|
}
|
|
239
250
|
|
|
240
251
|
},
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
<table class="uk-table uk-table-divider">
|
|
6
6
|
|
|
7
|
-
<thead>
|
|
7
|
+
<thead v-if="showTableHeader">
|
|
8
8
|
|
|
9
9
|
<tr>
|
|
10
10
|
|
|
@@ -140,6 +140,11 @@
|
|
|
140
140
|
default: {}
|
|
141
141
|
},
|
|
142
142
|
|
|
143
|
+
showTableHeader: {
|
|
144
|
+
type: Boolean,
|
|
145
|
+
default: true,
|
|
146
|
+
}
|
|
147
|
+
|
|
143
148
|
},
|
|
144
149
|
|
|
145
150
|
emits: ['sortColumn', 'actionButtonClicked', 'actionClicked'],
|
|
@@ -8,7 +8,11 @@
|
|
|
8
8
|
|
|
9
9
|
<li>
|
|
10
10
|
|
|
11
|
-
<span v-if="meta.total > 0">
|
|
11
|
+
<span v-if="meta.total > 0">
|
|
12
|
+
|
|
13
|
+
{{ 'Showing' }} {{ meta.from }} {{ 'to' }} {{ meta.to }} {{ 'of' }} {{ meta.total }} {{ 'entries' }}
|
|
14
|
+
|
|
15
|
+
</span>
|
|
12
16
|
|
|
13
17
|
<span v-else>{{ ('No results found') }}</span>
|
|
14
18
|
|
|
@@ -36,7 +40,6 @@
|
|
|
36
40
|
<li>
|
|
37
41
|
<select
|
|
38
42
|
class="uk-select"
|
|
39
|
-
@change="updatePage()"
|
|
40
43
|
v-model="current_page">
|
|
41
44
|
|
|
42
45
|
<option
|
|
@@ -86,18 +89,24 @@
|
|
|
86
89
|
|
|
87
90
|
emits: ['updatePage'],
|
|
88
91
|
|
|
89
|
-
|
|
92
|
+
data() {
|
|
90
93
|
|
|
91
|
-
|
|
94
|
+
return {
|
|
95
|
+
|
|
96
|
+
current_page: 1,
|
|
97
|
+
|
|
98
|
+
}
|
|
92
99
|
|
|
93
100
|
},
|
|
94
101
|
|
|
95
|
-
|
|
102
|
+
watch: {
|
|
96
103
|
|
|
97
|
-
|
|
104
|
+
current_page(newVal, oldVal) {
|
|
105
|
+
|
|
106
|
+
this.current_page = newVal;
|
|
107
|
+
|
|
108
|
+
this.updatePage();
|
|
98
109
|
|
|
99
|
-
current_page: this.meta.current_page,
|
|
100
|
-
|
|
101
110
|
}
|
|
102
111
|
|
|
103
112
|
},
|