Ox.TableList: add 'droppable' option (that guarantees cells are Ox.Elements, and thus receive drop events)
This commit is contained in:
parent
074ee0410e
commit
d05b12208a
1 changed files with 4 additions and 0 deletions
|
@ -29,6 +29,7 @@ Ox.TableList <f> TableList Widget
|
||||||
columnWidth <[n]|[40, 800]> Minimum and maximum column width
|
columnWidth <[n]|[40, 800]> Minimum and maximum column width
|
||||||
disableHorizontalScrolling <b|false> If true, disable scrolling
|
disableHorizontalScrolling <b|false> If true, disable scrolling
|
||||||
draggable <b|false> If true, items can be dragged
|
draggable <b|false> If true, items can be dragged
|
||||||
|
droppable <b> If true, items can be dropped
|
||||||
id <s|''> Id
|
id <s|''> Id
|
||||||
items <f|null> function() {} {sort, range, keys, callback} or array
|
items <f|null> function() {} {sort, range, keys, callback} or array
|
||||||
keys <[s]|[]> Additional keys (apart from keys of visible columns)
|
keys <[s]|[]> Additional keys (apart from keys of visible columns)
|
||||||
|
@ -70,6 +71,7 @@ Ox.TableList = function(options, self) {
|
||||||
columnWidth: [40, 800],
|
columnWidth: [40, 800],
|
||||||
disableHorizontalScrolling: false,
|
disableHorizontalScrolling: false,
|
||||||
draggable: false,
|
draggable: false,
|
||||||
|
droppable: false,
|
||||||
id: '',
|
id: '',
|
||||||
items: null,
|
items: null,
|
||||||
keys: [],
|
keys: [],
|
||||||
|
@ -540,6 +542,8 @@ Ox.TableList = function(options, self) {
|
||||||
? (Ox.isString(v.tooltip) ? v.tooltip : v.tooltip(data)) : '';
|
? (Ox.isString(v.tooltip) ? v.tooltip : v.tooltip(data)) : '';
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
} else if (self.options.droppable) {
|
||||||
|
$cell = Ox.Element();
|
||||||
} else {
|
} else {
|
||||||
// this is faster
|
// this is faster
|
||||||
$cell = $('<div>');
|
$cell = $('<div>');
|
||||||
|
|
Loading…
Reference in a new issue