Coder Social home page Coder Social logo

spinningwheel-wrapper's Introduction

The SpinningWheel script was created by Matteo Spinelli, http://cubiq.org/

SpinningWheel

The original script is already an awesome pure CSS3, javascript solution to show a native iOS style spinning wheel. Unforunately, the script provides a single global object called SpinningWheel which has to be managed properly between showing pickers with different types of data since it is always the same spinningwheel that is reused multiple times. This is where the scrollwheel wrapper comes in. It helps you simply create multiple instances of scrollwheel as you desire and it will manage the SpinningWheel object for you without you having to worry about it. Just be sure to pass a destroy function (see scrollwheel.example.js).

An added bonus feature of my wrapper is that it provides a 'type' parameter which you can use to create pickers of types time, date and custom; a feature missing in the original SpinningWheel script. Time and date pickers will do all the work for you. Custom picker is where you want to use your own data to show.

Of course, I created this for my use in a Phonegap mobile app and so some things may not make sense to you. If you would like to improve something in this script, contribute, report bugs, write tests etc., do let me know.

Usage

Javascript

<script type="text/javascript" src="spinningwheel.js"></script>
<script type="text/javascript" src="scrollwheel.wrapper.js"></script>

CSS

<link rel="stylesheet" type="text/css" href="assets/css/spinningwheel.css"/>

See http://cubiq.org/spinning-wheel-on-webkit-for-iphone-ipod-touch for more info.

spinningwheel-wrapper's People

Contributors

praneetloke avatar

Watchers

vincent guo 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.