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
|
|
@ -626,6 +626,7 @@ Ox.TextList = function(options, self) {
|
|||
}
|
||||
|
||||
self.setOption = function(key, value) {
|
||||
Ox.print('---------------------------- TextList setOption', key, value)
|
||||
if (key == 'items') {
|
||||
that.$body.options(key, value);
|
||||
} else if (key == 'paste') {
|
||||
|
|
@ -638,6 +639,14 @@ Ox.TextList = function(options, self) {
|
|||
// fixme: doesn't work, doesn't return that
|
||||
that.closePreview = that.$body.closePreview;
|
||||
|
||||
that.addItem = function(item) {
|
||||
/*
|
||||
self.options.items.push(item);
|
||||
that.$body.options({items: self.options.items});
|
||||
//that.$body.options({selected: [item.id]});
|
||||
*/
|
||||
}
|
||||
|
||||
that.editCell = function(id, key) {
|
||||
Ox.print('editCell', id, key)
|
||||
var $item = getItem(id),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue