18.0.0 • Published 1 year ago

@deejayy/overlay-spinner v18.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

npm

Overlay Spinner Component for Angular

Installation

npm install @deejayy/overlay-spinner

Demo

Overlay Spinner Component demo

Usage

import { OverlaySpinnerModule } from '@deejayy/overlay-spinner';

Selector: overlay-spinner

Properties

NameDescription
@Input()title: stringDefault: 'Please wait'Title text to display below the animation.
@Input()loading: booleanDefault: falseIs loading state in effect, so the spinner overlay should be active?
@Input()fullPage: booleanDefault: falseWhether it should it cover the full page, not just the content which is embedded inside the <overlay-spinner>
@Input()imagePath: stringDefault: ''The component has an animated SVG included by default, but this property gives the ability to replace it with hosted spinner animation/gif.

Examples

<overlay-spinner [loading]="(loading$ | async) === true">
  This is the content which should be covered with the overlay spinner while loading is in effect.
</overlay-spinner>