diff --git a/source/Ox.UI/js/List/Ox.List.js b/source/Ox.UI/js/List/Ox.List.js index 8ea8103a..52df9392 100644 --- a/source/Ox.UI/js/List/Ox.List.js +++ b/source/Ox.UI/js/List/Ox.List.js @@ -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 to be called when preview is opened externally + () -> the list + @*/ + that.openPreview = function() { + self.preview = true; + that.triggerEvent('openpreview', {ids: self.options.selected}); + return that; + }; + /*@ paste paste data (data) -> the list