File tree Expand file tree Collapse file tree 4 files changed +6
-7
lines changed Expand file tree Collapse file tree 4 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ export default {
39
39
40
40
## Usage
41
41
42
- Pass either ` data ` , ` from ` , or ` server ` as a data source. Everything else is optional.
42
+ Pass ` cols ` and either ` rows ` , ` from ` , or ` server ` as a data source. Everything else is optional.
43
43
44
44
Refer to [ Grid.js documentation] ( https://gridjs.io/docs/config/ ) for specific configuration options.
45
45
@@ -78,7 +78,7 @@ export default {
78
78
search: true / false || {}, // boolean or search settings object
79
79
server: {}, // server settings object
80
80
sort: true / false || {}, // boolean or sort settings object
81
- theme: 'mermaid', // string with name of theme
81
+ theme: 'mermaid', // string with name of theme or 'none' to disable
82
82
width: '100%' // string with css width value
83
83
}
84
84
}
Original file line number Diff line number Diff line change 36
36
"description" : " Boolean or sort settings object. Default: false"
37
37
},
38
38
"gridjs-vue/theme" : {
39
- "type" : " string" ,
40
- "description" : " String with name of theme. Default: 'mermaid'"
39
+ "type" : [ " string" ] ,
40
+ "description" : " String with name of theme or 'none' to disable . Default: 'mermaid'"
41
41
},
42
42
"gridjs-vue/width" : {
43
43
"type" : " string" ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " gridjs-vue" ,
3
3
"description" : " A Vue.js wrapper component for Grid.js" ,
4
- "version" : " 0.2.1 " ,
4
+ "version" : " 0.2.2 " ,
5
5
"license" : " MIT" ,
6
6
"private" : false ,
7
7
"main" : " ./dist/index.js" ,
Original file line number Diff line number Diff line change @@ -64,7 +64,6 @@ export default {
64
64
}
65
65
},
66
66
grid: null ,
67
- styles: null ,
68
67
uuid: null ,
69
68
wrapper: null
70
69
}
@@ -128,7 +127,7 @@ export default {
128
127
this .wrapper = await elementReady (` [data-uuid="${ this .uuid } "]` )
129
128
130
129
// assign styles
131
- this .assignStyles ()
130
+ if ( this . theme !== ' none ' ) this .assignStyles ()
132
131
133
132
// instantiate grid.js
134
133
if (this .wrapper && (this .options .data || this .options .from || this .options .server )) {
You can’t perform that action at this time.
0 commit comments