Spinner

Documentation

Input Parameters

Name Type Description
className string The class name to apply to the main element.
el HTMLElement The element to render the spinner to.
text: string The loading dialog text.

Interface

Name Type/Description
get() Returns the fabric component.

Fabric Interface

Name Type/Description  
animationSpeed number  
eightSize number  
fadeIncrement number  
interval number  
numCircles number  
offsetSize number  
parentSize number  
spinner _HTMLElement;  
start() Starts the animation. ;
stop() Stops the animation.  

JavaScript

var $REST = require("gd-sprest-js");

// Create the spinner
var el = document.querySelector("#loader");
$REST.JS.Fabric.Spinner({
    el: el,
    text: "Loading the data..."
});

TypeScript

import { Fabric } from "gd-sprest-js";

// Create the spinner
let el = document.querySelector("#loader");
Fabric.Spinner({
    el,
    text: "Loading the data..."
});