1
0
Fork 0
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:
rolux 2014-02-02 12:34:12 +00:00
commit e069f11c9a
5 changed files with 66 additions and 16 deletions

View file

@ -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