File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 15
15
"type" : [" string" , " function" ],
16
16
"description" : " String of HTML table selector or function returning HTML table string. Default: undefined"
17
17
},
18
+ "gridjs-vue/height" : {
19
+ "type" : " string" ,
20
+ "description" : " String that sets the height of the table excluding search, pagination, etc. Default: undefined"
21
+ },
18
22
"gridjs-vue/language" : {
19
23
"type" : " object" ,
20
24
"description" : " Localization dictionary object. Default: undefined"
Original file line number Diff line number Diff line change @@ -28,6 +28,10 @@ export default {
28
28
type: [String , Function ],
29
29
default: undefined
30
30
},
31
+ height: {
32
+ type: [String ],
33
+ default: undefined
34
+ },
31
35
language: {
32
36
type: Object ,
33
37
default: undefined
@@ -87,13 +91,12 @@ export default {
87
91
autoWidth: this .autoWidth ,
88
92
columns: this .cols ? this .cols : [this .dict .error .columnsUndefined ],
89
93
data: this .rows ? this .rows : this .from || this .server ? undefined : [[this .dict .error .rowsUndefined ]],
94
+ height: this .height ,
90
95
pagination: this .pagination ,
91
96
sort: this .sort ,
92
97
width: this .width
93
98
}
94
99
95
- // let classNames
96
-
97
100
if (this .classNames ) options .className = this .classNames
98
101
if (this .from )
99
102
options .from =
@@ -121,6 +124,9 @@ export default {
121
124
from () {
122
125
this .update ()
123
126
},
127
+ height () {
128
+ this .update ()
129
+ },
124
130
language () {
125
131
this .update ()
126
132
},
You can’t perform that action at this time.
0 commit comments