From 074c487c8d345ac622d228120ec725199521d28c Mon Sep 17 00:00:00 2001 From: Yerzhan Tulepov Date: Fri, 11 Jun 2021 10:17:09 +0600 Subject: [PATCH] Add show/hide loading progress to API --- src/core.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/core.js b/src/core.js index 0966ab8..3b209eb 100644 --- a/src/core.js +++ b/src/core.js @@ -38,6 +38,7 @@ import * as api from './global/api'; import flatpickr from 'flatpickr' import Mandarin from 'flatpickr/dist/l10n/zh.js' import { initListener } from './controllers/listener'; +import { hideloading, showloading } from './global/loading.js'; let luckysheet = {}; @@ -146,7 +147,7 @@ luckysheet.create = function (setting) { // Store the currently used plugins for monitoring asynchronous loading Store.asyncLoad.push(...luckysheetConfigsetting.plugins); - + // Register plugins initPlugins(extendsetting.plugins , extendsetting.data); @@ -245,6 +246,9 @@ luckysheet.selectHightlightShow = selectHightlightShow; // Reset parameters after destroying the table luckysheet.destroy = method.destroy; +luckysheet.showLoadingProgress = showloading; +luckysheet.hideLoadingProgress = hideloading; + export { luckysheet }