forked from 0x2620/oxjs
self.setOption ~> that.update
This commit is contained in:
parent
9ee0742b53
commit
005d50c389
56 changed files with 919 additions and 933 deletions
|
|
@ -27,7 +27,20 @@ Ox.TreeList = function(options, self) {
|
|||
selected: [],
|
||||
width: 'auto'
|
||||
})
|
||||
.options(options || {});
|
||||
.options(options || {})
|
||||
.update({
|
||||
data: function() {
|
||||
// ...
|
||||
},
|
||||
selected: function() {
|
||||
//self.$list.options({selected: self.options.selected});
|
||||
selectItem({ids: self.options.selected});
|
||||
self.$list.scrollToSelection();
|
||||
},
|
||||
width: function() {
|
||||
// ...
|
||||
}
|
||||
});
|
||||
|
||||
if (self.options.data) {
|
||||
self.options.items = [];
|
||||
|
|
@ -249,18 +262,6 @@ Ox.TreeList = function(options, self) {
|
|||
});
|
||||
}
|
||||
|
||||
self.setOption = function(key, value) {
|
||||
if (key == 'data') {
|
||||
// ...
|
||||
} else if (key == 'selected') {
|
||||
//self.$list.options({selected: value});
|
||||
selectItem({ids: value});
|
||||
self.$list.scrollToSelection();
|
||||
} else if (key == 'width') {
|
||||
// ...
|
||||
}
|
||||
};
|
||||
|
||||
/*@
|
||||
gainFocus <f> gainFocus
|
||||
@*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue