Commit 5ead125b authored by Alexander.Trofimov's avatar Alexander.Trofimov

bug 19709

add event asc_onFilterInfo (countFilter, countRecords) - send count filtered and all records
parent 4dd53a82
......@@ -828,6 +828,7 @@ var editor;
* asc_onDocumentUpdateVersion (callback) - эвент о том, что файл собрался и не может больше редактироваться
* asc_onContextMenu (event) - эвент на контекстное меню
* asc_onDocumentContentReady () - эвент об окончании загрузки документа
* asc_onFilterInfo (countFilter, countRecords) - send count filtered and all records
*/
spreadsheet_api.prototype.asc_registerCallback = function(name, callback, replaceOldCallback) {
......
......@@ -671,6 +671,8 @@
self._onSelectionNameChanged.apply(self, arguments);
}, "selectionMathInfoChanged": function() {
self._onSelectionMathInfoChanged.apply(self, arguments);
},'onFilterInfo': function(countFilter, countRecords) {
self.handlers.trigger("asc_onFilterInfo", countFilter, countRecords);
}, "onErrorEvent": function(errorId, level) {
self.handlers.trigger("asc_onError", errorId, level);
}, "slowOperation": function(isStart) {
......
......@@ -11539,6 +11539,9 @@
if (null !== rangeOldFilter && !t.model.workbook.bUndoChanges && !t.model.workbook.bRedoChanges) {
t._onUpdateFormatTable(rangeOldFilter, false, true);
if (applyFilterProps.nOpenRowsCount !== applyFilterProps.nAllRowsCount) {
t.handlers.trigger('onFilterInfo', applyFilterProps.nOpenRowsCount, applyFilterProps.nAllRowsCount);
}
}
if (null !== minChangeRow) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment