UNPKG

gd-sprest-js

Version:

SharePoint 2013/Online js components.

26 lines (25 loc) 632 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _1 = require("."); /** * Spinner */ exports.Spinner = function (props) { var _spinner = null; // Method to get the component var get = function () { // Return the spinner return _spinner; }; // Ensure the element exists if (props.el) { // Render a spinner props.el.innerHTML = _1.Templates.Spinner(props); // Initialize the spinner _spinner = new _1.fabric.Spinner(props.el.querySelector(".ms-Spinner")); } // Return the spinner return { get: get }; };