forked from 0x2620/oxjs
use new-style mouse events in Ox.List
This commit is contained in:
parent
2043dc7a12
commit
be3b1d573d
8 changed files with 185 additions and 143 deletions
|
|
@ -27,12 +27,13 @@ Ox.TextList <f:Ox.Element> TextList Object
|
|||
draggable <b|false> If true, items can be dragged
|
||||
id <s|''>
|
||||
items <f|null> function() {} {sort, range, keys, callback} or array
|
||||
max <n|-1>
|
||||
min <n|0>
|
||||
max <n|-1> Maximum number of items that can be selected (-1 for all)
|
||||
min <n|0> Minimum number of items that must be selected
|
||||
pageLength <n|100>
|
||||
scrollbarVisible <b|false>
|
||||
selected <a|[]>
|
||||
sort <a|[]>
|
||||
sortable <b|false> If true, elements can be re-ordered
|
||||
self <o> shared private variable
|
||||
@*/
|
||||
|
||||
|
|
@ -57,7 +58,8 @@ Ox.TextList = function(options, self) {
|
|||
pageLength: 100,
|
||||
scrollbarVisible: false,
|
||||
selected: [],
|
||||
sort: []
|
||||
sort: [],
|
||||
sortable: false
|
||||
})
|
||||
.options(options || {})
|
||||
.addClass('OxTextList')
|
||||
|
|
@ -859,7 +861,7 @@ Ox.TextList = function(options, self) {
|
|||
|
||||
that.value = function(id, key, value) {
|
||||
// fixme: make this accept id, {k: v, ...}
|
||||
Ox.print('value', id, key, value)
|
||||
//Ox.print('value', id, key, value)
|
||||
var $cell,
|
||||
$item = getItem(id);
|
||||
//column = self.options.columns[getColumnIndexById(key)];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue