forked from 0x2620/oxjs
improve listmap editing functionality
This commit is contained in:
parent
76606689d7
commit
02442a24f7
6 changed files with 81 additions and 56 deletions
|
|
@ -1240,11 +1240,16 @@ Ox.List = function(options, self) {
|
|||
}
|
||||
|
||||
self.setOption = function(key, value) {
|
||||
//Ox.print('list onChange', key, value);
|
||||
Ox.print('list setOption', key, value);
|
||||
if (key == 'items') {
|
||||
updateQuery();
|
||||
if (Ox.typeOf(value) == 'array') {
|
||||
loadItems();
|
||||
updateSort();
|
||||
} else {
|
||||
updateQuery();
|
||||
}
|
||||
} else if (key == 'selected') {
|
||||
Ox.print('onChange selected', value)
|
||||
Ox.print('setOption selected', value)
|
||||
setSelected(value);
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue