forked from 0x2620/oxjs
list updates
This commit is contained in:
parent
2b44e1c694
commit
5095eeed5d
2 changed files with 27 additions and 22 deletions
|
|
@ -144,15 +144,16 @@ Ox.IconList = function(options, self) {
|
|||
|
||||
/*@
|
||||
closePreview <f> close preview
|
||||
() -> <u> close
|
||||
() -> <o> the list
|
||||
@*/
|
||||
that.closePreview = function() {
|
||||
that.$element.closePreview();
|
||||
return that;
|
||||
};
|
||||
|
||||
/*@
|
||||
paste <f> paste to list
|
||||
(data) -> <f> paste data, returns IconList
|
||||
paste <f> paste into list
|
||||
() -> <o> the list
|
||||
@*/
|
||||
that.paste = function(data) {
|
||||
that.$element.paste(data);
|
||||
|
|
@ -161,7 +162,7 @@ Ox.IconList = function(options, self) {
|
|||
|
||||
/*@
|
||||
reloadList <f> reload list
|
||||
() -> <u> reload iconlist
|
||||
() -> <o> the list
|
||||
@*/
|
||||
that.reloadList = function() {
|
||||
that.$element.reloadList();
|
||||
|
|
@ -169,16 +170,16 @@ Ox.IconList = function(options, self) {
|
|||
};
|
||||
|
||||
/*@
|
||||
scrollToSelection <f> set key/value
|
||||
() -> <u> scroll list ot selection
|
||||
scrollToSelection <f> scroll list to selection
|
||||
() -> <o> the list
|
||||
@*/
|
||||
that.scrollToSelection = function() {
|
||||
that.$element.scrollToSelection();
|
||||
};
|
||||
|
||||
/*@
|
||||
size <f> set key/value
|
||||
() -> <n> get size of list
|
||||
size <f> get size of list
|
||||
() -> <n> size
|
||||
@*/
|
||||
that.size = function() {
|
||||
that.$element.size();
|
||||
|
|
@ -186,8 +187,9 @@ Ox.IconList = function(options, self) {
|
|||
|
||||
/*@
|
||||
sortList <f> sort list
|
||||
(key, operator) -> <u> sort list by key with operator
|
||||
operator <s> can be + / -
|
||||
(key, operator) -> <o> the list
|
||||
key <s> sort key
|
||||
operator <s> sort operator ("+" or "-")
|
||||
@*/
|
||||
that.sortList = function(key, operator) {
|
||||
self.options.sort = [{
|
||||
|
|
@ -196,6 +198,7 @@ Ox.IconList = function(options, self) {
|
|||
}];
|
||||
updateKeys();
|
||||
that.$element.sortList(key, operator);
|
||||
return that;
|
||||
};
|
||||
|
||||
/*@
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue