The 2017 Ionic Developer Survey Results are in!

Spinner Dialog

Improve this doc

Repo: https://github.com/greybax/cordova-plugin-native-spinner

Installation

  1. Install the Cordova and Ionic Native plugins:
    $ ionic cordova plugin add cordova-plugin-native-spinner
    $ npm install --save @ionic-native/spinner-dialog
    
  2. Add this plugin to your app's module

Supported platforms

Usage

import { SpinnerDialog } from '@ionic-native/spinner-dialog';

constructor(private spinnerDialog: SpinnerDialog) { }

...

this.spinnerDialog.show();

this.spinnerDialog.hide();

Instance Members

show(title, message, cancelCallback, iOSOptions)

Shows the spinner dialog

Param Type Details
title string

Spinner title (shows on Android only)

message string

Spinner message

cancelCallback boolean|function()

Set to true to set spinner not cancelable. Or provide a function to call when the user cancels the spinner.

iOSOptions object

Options for iOS only

hide()

Hides the spinner dialog if visible

SpinnerDialogIOSOptions

Param Type Details
overlayOpacity number (optional)
textColorRed number (optional)
textColorGreen number (optional)
textColorBlue number (optional)

API

Native

General