forked from 0x2620/oxjs
allow for updating 'draggable' and 'sortable' options of a table list
This commit is contained in:
parent
305dd4cec1
commit
6c79e5711e
2 changed files with 30 additions and 19 deletions
|
|
@ -90,6 +90,9 @@ Ox.TableList = function(options, self) {
|
|||
? disableHorizontalScrolling()
|
||||
: enableHorizontalScrolling();
|
||||
},
|
||||
draggable: function() {
|
||||
that.$body.options({sortable: self.options.draggable});
|
||||
},
|
||||
items: function() {
|
||||
that.$body.options({items: self.options.items});
|
||||
},
|
||||
|
|
@ -107,6 +110,9 @@ Ox.TableList = function(options, self) {
|
|||
sort: function() {
|
||||
updateColumn();
|
||||
that.$body.options({sort: self.options.sort});
|
||||
},
|
||||
sortable: function() {
|
||||
that.$body.options({sortable: self.options.sortable});
|
||||
}
|
||||
})
|
||||
.addClass('OxTableList');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue