allow for list preview to be opened externally
This commit is contained in:
parent
4871e4b13f
commit
5f95fd9da4
1 changed files with 11 additions and 0 deletions
|
@ -1453,6 +1453,7 @@ Ox.List = function(options, self) {
|
|||
@*/
|
||||
that.closePreview = function() {
|
||||
self.preview = false;
|
||||
that.triggerEvent('closepreview');
|
||||
return that;
|
||||
};
|
||||
|
||||
|
@ -1465,6 +1466,16 @@ Ox.List = function(options, self) {
|
|||
return that;
|
||||
};
|
||||
|
||||
/*@
|
||||
openPreview <f> to be called when preview is opened externally
|
||||
() -> <o> the list
|
||||
@*/
|
||||
that.openPreview = function() {
|
||||
self.preview = true;
|
||||
that.triggerEvent('openpreview', {ids: self.options.selected});
|
||||
return that;
|
||||
};
|
||||
|
||||
/*@
|
||||
paste <f> paste data
|
||||
(data) -> <o> the list
|
||||
|
|
Loading…
Reference in a new issue