Commit ec9dc5db authored by Alexander.Trofimov's avatar Alexander.Trofimov

Добавил эвент о вызове всплывающего меню для дополнения ячейки

asc_onShowAutoComplete (isFormula, arrValues)

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@55427 954022d7-b5bf-4e40-9824-e11837661b57
parent 771d009f
......@@ -1191,6 +1191,7 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS";
* asc_onGetEditorPermissions (permission) - эвент о правах редактора
* asc_onGetLicense (license) - эвент о лицензии
* asc_onStopFormatPainter () - эвент об окончании форматирования по образцу
* asc_onShowAutoComplete (isFormula, arrValues) - эвент о вызове всплывающего меню для дополнения ячейки
*/
asc_StartAction: function (type, id) {
......
......@@ -825,7 +825,7 @@
var ws = this.getWorksheet();
var arrValues = ws.getCellAutoCompleteValues(ws.activeRange.startCol, ws.activeRange.startRow);
this.popUpSelector.show(false, arrValues, this.getWorksheet().getActiveCellCoord());
// ToDo нужно не забыть скрывать этот список
this.handlers.trigger("asc_onShowAutoComplete", false, arrValues);
};
WorkbookView.prototype._onAutoFiltersClick = function (idFilter) {
......@@ -1380,10 +1380,10 @@
}
if (0 < arrResult.length) {
this.popUpSelector.show(true, arrResult, this.getWorksheet().getActiveCellCoord());
this.handlers.trigger("asc_onShowAutoComplete", true, arrResult);
this.lastFormulaPos = formulaPos;
this.lastFormulaName = formulaName;
}
else {
} else {
this.popUpSelector.hide();
this.lastFormulaPos = -1;
this.lastFormulaName = "";
......
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