1
0
Fork 0
forked from 0x2620/oxjs

allow for updating 'draggable' and 'sortable' options of a table list

This commit is contained in:
rlx 2013-07-13 14:01:17 +00:00
commit 6c79e5711e
2 changed files with 30 additions and 19 deletions

View file

@ -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');