allow for list preview to be opened externally

This commit is contained in:
rolux 2012-04-04 00:34:41 +02:00
parent 4871e4b13f
commit 5f95fd9da4

View file

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