forked from 0x2620/oxjs
Lists: make most recently selected item selected[0]; add selectSelected method to change this item from outside
This commit is contained in:
parent
120a9eda41
commit
e069f11c9a
5 changed files with 66 additions and 16 deletions
|
|
@ -220,6 +220,16 @@ Ox.IconList = function(options, self) {
|
|||
return that;
|
||||
};
|
||||
|
||||
that.selectPosition = function(pos) {
|
||||
that.$element.selectPosition(pos);
|
||||
return that;
|
||||
};
|
||||
|
||||
that.selectSelected = function(offset) {
|
||||
that.$element.selectSelected(offset);
|
||||
return that;
|
||||
};
|
||||
|
||||
/*@
|
||||
size <f> get size of list
|
||||
() -> <n> size
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue