zet-lib 1.3.7 → 1.3.8
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/lib/zdataTable.js +4 -3
- package/package.json +1 -1
package/lib/zdataTable.js
CHANGED
|
@@ -46,7 +46,6 @@ class dataTable {
|
|
|
46
46
|
this.additionalCss = `<style>thead > tr > th {white-space: nowrap;}</style>`
|
|
47
47
|
}
|
|
48
48
|
this.totalFields = []
|
|
49
|
-
this.additionalCss = ''
|
|
50
49
|
}
|
|
51
50
|
|
|
52
51
|
// for filter html
|
|
@@ -111,7 +110,8 @@ class dataTable {
|
|
|
111
110
|
}
|
|
112
111
|
|
|
113
112
|
get buttons() {
|
|
114
|
-
let html =
|
|
113
|
+
let html = this.additionalCss
|
|
114
|
+
html = `<div class="dataTables_wrapper dt-bootstrap5 no-footer "><div class="dt-buttons btn-group flex-wrap">`
|
|
115
115
|
if (this.levels.create) {
|
|
116
116
|
html += `<button title="${LANGUAGE.create_info}" class="btn create gridadd image-button boxy-small dimens2x" tabindex="0" aria-controls="DataTables_Table_0" type="button"><img src="/assets/icons/plus.svg" class="icons-bg-black"> ${LANGUAGE.create}</button>`
|
|
117
117
|
}
|
|
@@ -147,7 +147,8 @@ class dataTable {
|
|
|
147
147
|
}
|
|
148
148
|
|
|
149
149
|
get buttons2() {
|
|
150
|
-
let html =
|
|
150
|
+
let html = this.additionalCss
|
|
151
|
+
html += `<div class="dataTables_wrapper dt-bootstrap5 no-footer "><div class="dt-buttons btn-group flex-wrap">`
|
|
151
152
|
if (this.levels.create) {
|
|
152
153
|
html += `<button title="${LANGUAGE.create_info}" class="btn create gridadd image-button boxy-small dimens2x" tabindex="0" aria-controls="DataTables_Table_0" type="button"><img src="/assets/icons/plus.svg" class="icons-bg-black"></button>`
|
|
153
154
|
}
|