Skip to content

Commit

Permalink
Expose loader and spinner
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Forsgren committed Feb 29, 2024
1 parent 8e9f2ba commit 3a11063
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions origo.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down Expand Up @@ -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;

0 comments on commit 3a11063

Please sign in to comment.