A minimal progress indicator for iOS with status update support. Displays above UINavigationBar and below the Status Bar.
var indicator = require('de.marcelpociot.mwkprogress');
indicator.show();
indicator.updateMessage("We're nearly done");
indicator.updateProgress( 0.5 );
indicator.showMessageWithColorDuration({message: 'Loading more posts...', duration: 2, color: '#789123', textColor: '#ffffff'});
Shows the progress indicator.
Option
Type: Dictionary
{message: 'message text', color: '#fff'}
Shows the progress indicator with specified text and color.
Dismiss the progress indicator.
Option
Type: Float
Progress to display from 0.0 to 1.0.
Option
Type: String
Updates the displayed message.
Option
Type: String
Show a success indicator with the specified message.
Option
Type: String
Show an error indicator with the specified message.
Option
Type: Dictionary
{message: 'Loading more posts...', duration: 2, color: '#789123', textColor: '#defabc'}
Show a message indicator with the specified message, color and duration. The textColor is optional, if not specified '#000000' is used.
I'm a web enthusiast located in Germany and in charge of http://www.titaniumcontrols.com
Follow me on twitter: @marcelpociot / @TitaniumCTRLs