npm.io
1.0.1 • Published 7 years ago

ngmat-overlay-spinner

Licence
MIT
Version
1.0.1
Deps
1
Size
146 kB
Vulns
0
Weekly
0

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?: SpinnerOptions Optional configuration object controlling the spinner appearance.
Returns
SpinnerRef A 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
Name Description
color?: ThemePalette Theme color palette for the component. See.
diameter?: number The diameter of the progress spinner (will set width and height of svg). See.
strokeWidth?: number Stroke width of the progress spinner. See.
mode?: ProgressSpinnerMode Mode 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.

Keywords