1.0.1 • Published 5 years ago

ngmat-overlay-spinner v1.0.1

Weekly downloads
5
License
MIT
Repository
github
Last release
5 years ago

ngmat-overlay-spinner

A service that shows and hides a spinner on a overlay blocking user interactions as long as it is displayed.

Demo

Installation

npm install --save ngmat-overlay-spinner

API

import { OverlaySpinnerModule } from 'ngmat-overlay-spinner';

Services

OverlaySpinnerService

A service that shows and hides a spinner on a overlay blocking user interactions as long as it is displayed.

Methods
open
Shows a overlay spinner.
Parameters
options?: SpinnerOptionsOptional configuration object controlling the spinner appearance.
Returns
SpinnerRefA reference to the opened spinner overlay

Classes

SpinnerRef

A reference to a opened overlay spinner.

Methods

dismiss
Hides removes the spinner overlay from view.

Interfaces

SpinnerOptions

Configuration settings for the spinner appearance. Any properties not supplied will use the default value of the mat-progress-spinner component.

Properties
NameDescription
color?: ThemePaletteTheme color palette for the component. See.
diameter?: numberThe diameter of the progress spinner (will set width and height of svg). See.
strokeWidth?: numberStroke width of the progress spinner. See.
mode?: ProgressSpinnerModeMode of the progress circle. See.
value?: Observable<number>Value of the progress circle. Only relevant if the mode is 'determinate'. The spinner will be updated for every emit of the obervable.