File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -171,15 +171,15 @@ class ComponentLine {
171
171
DATA_INPUT ;
172
172
SORTABLE ;
173
173
174
- constructor ( name , columns , data , options ) {
174
+ constructor ( name , columns , data , options = { } ) {
175
175
this . DOM = document . getElementById ( name ) ;
176
176
this . NAME = name ;
177
177
this . COLUMNS = columns ;
178
178
this . DATA = data ;
179
179
this . OPTIONS = Object . assign ( {
180
180
sortable : true ,
181
181
delete : true ,
182
- } , options || { } ) ;
182
+ } , options ) ;
183
183
/*head foot*/
184
184
let foot = this . makeHead ( ) ;
185
185
/*hidden data container*/
@@ -193,7 +193,7 @@ class ComponentLine {
193
193
/*foot*/
194
194
this . makeFoot ( foot ) ;
195
195
/*sort*/
196
- this . sortable ( ) ;
196
+ if ( this . OPTIONS . sortable ) this . sortable ( ) ;
197
197
}
198
198
199
199
makeHead ( ) {
You can’t perform that action at this time.
0 commit comments