GithubHelp home page GithubHelp logo

mpociot / timwkprogressindicator Goto Github PK

View Code? Open in Web Editor NEW
49.0 6.0 11.0 2.61 MB

A minimal progress indicator for iOS with status update support. Displays above UINavigationBar and below the Status Bar.

License: Other

Objective-C 57.08% Python 37.66% JavaScript 5.26%

timwkprogressindicator's Introduction

TiMWKProgressIndicator

A minimal progress indicator for iOS with status update support. Displays above UINavigationBar and below the Status Bar.

Usage

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'});

Functions

show

Shows the progress indicator.

showMessageWithColor

Option

Type: Dictionary

{message: 'message text', color: '#fff'}

Shows the progress indicator with specified text and color.

dismiss

Dismiss the progress indicator.

updateProgress

Option

Type: Float

Progress to display from 0.0 to 1.0.

updateMessage

Option

Type: String

Updates the displayed message.

showSuccessMessage

Option

Type: String

Show a success indicator with the specified message.

showErrorMessage

Option

Type: String

Show an error indicator with the specified message.

showMessageWithColorDuration

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.

ABOUT THE AUTHOR

I'm a web enthusiast located in Germany and in charge of http://www.titaniumcontrols.com

Follow me on twitter: @marcelpociot / @TitaniumCTRLs

timwkprogressindicator's People

Contributors

ludolphus avatar mpociot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.