From 3a1106389489c1986508ac3cf9fbfe9120016855 Mon Sep 17 00:00:00 2001 From: Stefan Forsgren Date: Thu, 29 Feb 2024 14:13:09 +0100 Subject: [PATCH] Expose loader and spinner --- origo.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/origo.js b/origo.js index 016131090..7a72cfcaf 100644 --- a/origo.js +++ b/origo.js @@ -27,6 +27,8 @@ import 'elm-pep'; import 'pepjs'; import 'drag-drop-touch'; import permalink from './src/permalink/permalink'; +import * as Loader from './src/loading'; +import Spinner from './src/utils/spinner'; const Origo = function Origo(configPath, options = {}) { /** Reference to the returned Component */ @@ -165,5 +167,10 @@ Origo.Utils = Utils; Origo.dropdown = dropdown; Origo.renderSvgIcon = renderSvgIcon; Origo.SelectedItem = SelectedItem; +Origo.Loader = {}; +Origo.Loader.show = Loader.showLoading; +Origo.Loader.hide = Loader.hideLoading; +Origo.Loader.withLoading = Loader.withLoading; +Origo.Loader.getInlineSpinner = Spinner; export default Origo;