Timer for React

Learn about Timer
light
dark

Change the theme setting here

Timer - Countdown

Change demo
Countdown
React Countdown timer with start, stop, reset controls, wheel settings for year, month, day, hour, minute, second, fract. For React.
mobiscroll.settings = {
    lang: '',
    theme: ''
};

class TimerDemo extends React.Component {
    render() {
        return (
            <mobiscroll.Form>
                <mobiscroll.FormGroup>
                    <mobiscroll.FormGroupTitle>Embedded countdown</mobiscroll.FormGroupTitle>
                    <mobiscroll.Timer
                        ref="timer"
                        display="inline"
                        countDirection="down"
                        targetTime={10}
                        maxWheel="minutes"
                        minWidth={100}
                        type="hidden"
                        onFinish={function () {
                            mobiscroll.alert({
                                title: "Countdown finished",
                                message: "Yup, that's right, time's up. <br> Restart it by setting a new time."
                            });
                        }}
                        placeholder="Please Select..."
                    />
                </mobiscroll.FormGroup>
            </mobiscroll.Form>
        );
    }    
}

<div id="content">

Timer - Stopwatch

Change demo
Stopwatch
React Stopwatch demo with start, stop controls and lap counter. Change the steps and display wheels. For React.
class TimerDemo extends React.Component {
    constructor(props) {
        super(props);

         this.state = {
           lapsNr: 1,
		   laps: []
         };
    }
    
    onReset = () => { 
        this.setState({
            lapsNr: 1,
			laps: []
		});
    }
    
    lap = (event, inst) => {
        function format(ms) {
            var minutes = Math.floor(ms / (1000 * 60)),
                seconds = Math.floor((ms - minutes * 1000 * 60) / 1000),
                fract = Math.floor((ms - minutes * 1000 * 60 - seconds * 1000) / 10);

            return minutes + 'm ' + (seconds < 10 ? '0' : '') + seconds + 's.' + (fract < 10 ? '0' : '') + fract;
        }				
			this.state.laps.splice(0, 0, {
				id: this.state.lapsNr,
				lap: format(event.lap),
				ellapsed: format(event.ellapsed)
			});
			
			this.state.lapsNr+=1;
			var state = this.state;
			this.setState(state);
    }
    
    render() {
		var laps = this.state.laps;
        return (
            <div>
                <mobiscroll.Timer
                    ref="timer"
                    theme=""
                    lang=""
                    display="inline"
                    step={0.01}
                    rows={3}
                    buttons={['start', 'reset', 'lap']}
                    onReset={this.onReset}
                    onLap={this.lap}
                    mode="stopwatch"
                    type="hidden"
                />
                <table id="laps">
					<tbody>
						{ laps.map(function(lap) {
							return <tr key={lap.id}>
    							<td>#{lap.id}</td>
    							<td>{lap.lap}</td>
    							<td>{lap.ellapsed}</td>
    						</tr>;
						}) }
					</tbody>
				</table>
            </div>
        );
    }    
}

<div id="content">

Timer - Event handlers

Change demo
Event handlers
React Timer demo with event hooks for custom integration and functionality. For React.
Clear event log
EVENTS FIRED: 
class TimerDemo extends React.Component {
    lap = (event, inst) => {
        // Your custom event handler goes here
    }
    
    onInit = (event, inst) => {
        // Your custom event handler goes here
    }
    
    onMarkupReady = (event, inst) => {
        // Your custom event handler goes here
    }
    
    onBeforeShow = (event, inst) => {
        // Your custom event handler goes here
    }
    
    onPosition = (event, inst) => {
        // Your custom event handler goes here
    }
    
    onShow = (event, inst) => {
        // Your custom event handler goes here
    }
    
    onSet = (event, inst) => {
        // Your custom event handler goes here
    }
    
    onStart = (event, inst) => {
        // Your custom event handler goes here
    }
    
    onStop = (event, inst) => {
        // Your custom event handler goes here
    }
    
    onFinish = (event, inst) => {
        // Your custom event handler goes here
    }
    
    onReset = (event, inst) => {
        // Your custom event handler goes here
    }
    
    onItemTap = (event, inst) => {
        // Your custom event handler goes here
    }
    
    onDestroy = (event, inst) => {
        // Your custom event handler goes here
    }
    
    onClose = (event, inst) => {
        // Your custom event handler goes here
    }
    
    onChange = (event, inst) => {
        // Your custom event handler goes here
    }
    
    onCancel = (event, inst) => {
        // Your custom event handler goes here
    }
    
    onBeforeClose = (event, inst) => {
        // Your custom event handler goes here
    }
    
    onClear = (event, inst) => {
        // Your custom event handler goes here
    }
    
    render() {
        return (
            <div>
                <mobiscroll.Timer 
                    ref="timer"
                    theme=""
                    lang=""
                    display="inline"
                    lap={this.lap}
                    onInit={this.onInit}
                    onMarkupReady={this.onMarkupReady}
                    onBeforeShow={this.onBeforeShow}
                    onPosition={this.onPosition}
                    onShow={this.onShow}
                    onSet={this.onSet}
                    onStart={this.onStart}
                    onStop={this.onStop}
                    onFinish={this.onFinish}
                    onReset={this.onReset}
                    onItemTap={this.onItemTap}
                    onDestroy={this.onDestroy}
                    onClose={this.onClose}
                    onChange={this.onChange}
                    onCancel={this.onCancel}
                    onBeforeClose={this.onBeforeClose}
                    onClear={this.onClear}
                    type="hidden"
                />
            </div>
        );
    }    
}

<div id="content"></div>

Timer - Display modes

Change demo
Display modes
React Timer demo with top, bottom, popup, center, modal, bubble and inline embeddable display modes. For React.
mobiscroll.settings = {
    lang: '',
    theme: ''
};

class TimerDemo extends React.Component {
    render() {
        return (
            <mobiscroll.Form>
                <mobiscroll.FormGroup>
    				<mobiscroll.FormGroupTitle>Try different display modes</mobiscroll.FormGroupTitle>
                    <label>
                        Bottom
                        <mobiscroll.Timer
                            display="bottom"
                            placeholder="Please Select..."
                        />
                    </label>
                    <label>
                        Top
                        <mobiscroll.Timer
                            display="top"
                            placeholder="Please Select..."
                        />
                    </label>
                    <label>
                        Center
                        <mobiscroll.Timer
                            display="center"
                            placeholder="Please Select..."
                        />
                    </label>
                    <label>
                        Bubble
                        <mobiscroll.Timer
                            display="bubble"
                            placeholder="Please Select..."
                        />
                    </label>
                </mobiscroll.FormGroup>
                <mobiscroll.FormGroup className="mbsc-padding">
                    <p className="mbsc-thin">With inline display you can embed the Timer component in almost any markup or form.</p>
                </mobiscroll.FormGroup>
                <mobiscroll.FormGroup>
                    <mobiscroll.FormGroupTitle>Embedded timer scroller</mobiscroll.FormGroupTitle>
                    <mobiscroll.Timer
                        type="hidden"
                        display="inline"
                        layout="liquid"
                        placeholder="Please Select..."
                    />
                </mobiscroll.FormGroup>
            </mobiscroll.Form>
        );
    }   
}

<div id="content"></div>

Timer - Theming capabilities

Change demo
Theming capabilities
React Timer control with iOS, Material, Windows look & feel. Customize colors and styling with theme builder. For React.
mobiscroll.settings = {
    theme: '',
    lang: ''
};

class TimerDemo extends React.Component {
    render () {
        return (
            <mobiscroll.Form>
                <div className="mbsc-grid-fixed mbsc-grid-lg">
                    <div className="mbsc-row">
                        <div className="mbsc-col">
                            <mobiscroll.FormGroup inset>
            					<mobiscroll.FormGroupTitle>iOS Theme</mobiscroll.FormGroupTitle>
            					<label>
            					    Light
                                    <mobiscroll.Timer
                                        theme="ios"
                                        placeholder="Please Select..."
                                    />
                                </label>
                                <label>
            					    Dark
                                    <mobiscroll.Timer
                                        theme="ios-dark"
                                        placeholder="Please Select..."
                                    />
                                </label>
                            </mobiscroll.FormGroup>
                        </div>
                        <div className="mbsc-col">
                            <mobiscroll.FormGroup inset>
            					<mobiscroll.FormGroupTitle>Material Theme</mobiscroll.FormGroupTitle>
            					<label>
            					    Light
                                    <mobiscroll.Timer
                                        theme="material"
                                        placeholder="Please Select..."
                                    />
                                </label>
                                <label>
            					    Dark
                                    <mobiscroll.Timer
                                        theme="material-dark"
                                        placeholder="Please Select..."
                                    />
                                </label>
                            </mobiscroll.FormGroup>
                        </div>
                    </div>
                    <div className="mbsc-row">
                        <div className="mbsc-col">
                            <mobiscroll.FormGroup inset>
            					<mobiscroll.FormGroupTitle>Windows Theme</mobiscroll.FormGroupTitle>
            					<label>
            					    Light
                                    <mobiscroll.Timer
                                        theme="windows"
                                        placeholder="Please Select..."
                                    />
                                </label>
                                <label>
            					    Dark
                                    <mobiscroll.Timer
                                        theme="windows-dark"
                                        placeholder="Please Select..."
                                    />
                                </label>
                            </mobiscroll.FormGroup>
                        </div>
                        <div className="mbsc-col">
                            <mobiscroll.FormGroup inset>
            					<mobiscroll.FormGroupTitle>Mobiscroll Theme</mobiscroll.FormGroupTitle>
            					<label>
            					    Light
                                    <mobiscroll.Timer
                                        theme="mobiscroll"
                                        placeholder="Please Select..."
                                    />
                                </label>
                                <label>
            					    Dark
                                    <mobiscroll.Timer
                                        theme="mobiscroll-dark"
                                        placeholder="Please Select..."
                                    />
                                </label>
                            </mobiscroll.FormGroup>
                        </div>
                    </div>
                </div>
            </mobiscroll.Form>
        );
    }    
}

<div id="content"></div>

Looking for something you didn't see or have a sales question?
Ask us about it, we're here to help.

Component license


Purchase component licenses if you are looking for specific funcionality.

Total


All features will be included with the license.

Buy component license

Framework license


Get all 36 components, including with the Framework license.



Mobiscroll for React $595


Use Javascript when building with plain and simple JS. Use jQuery when you have jQuery already included or if you are building with jQuery Mobile. Use AngularJS when building with Angular 1.x or Ionic 1. Use Angular when building with Angular 2/4/5/6/7 or Ionic 2/3/4. Use it when you are building your app or website with React.


Buy framework license
See other licensing options

Framework license


Get all 36 components, including with the Framework license.



Mobiscroll for React $595


  • Use it when building with plain and simple JS
  • Compatible with vanilla JS app or frameworks like Vue
  • Royalty-free commercial usage
  • Technical support is included with the license
  • Use it with jQuery and jQuery Mobile
  • Enjoy the familiar API if you already use jQuery
  • Royalty-free commercial usage
  • Technical support is included with the license
  • Use it with Angular JS and Ionic 1
  • For web and mobile apps based on Angular 1.x
  • Royalty-free commercial usage
  • Technical support is included with the license
  • Use it with Angular 2/4/5/6/7 and Ionic 2/3/4
  • Visual Studio and VS Code integration
  • Royalty-free commercial usage
  • Technical support is included with the license
  • Use it when building with React JS
  • Collection of UI components for web and mobile
  • Royalty-free commercial usage
  • Technical support is included with the license
Buy framework license
See other licensing options

Framework license


Select the development framework you are using. Get all 36 components with the license.

Mobiscroll for Javascript
Mobiscroll for jQuery
Mobiscroll for React
Mobiscroll for Angular
Mobiscroll for Angular JS
  • Use it when building with plain and simple JS
  • Compatible with vanilla JS app or frameworks like Vue
  • Royalty-free commercial usage
  • Technical support is included with the license
  • Use it with jQuery and jQuery Mobile
  • Enjoy the familiar API if you already use jQuery
  • Royalty-free commercial usage
  • Technical support is included with the license
  • Use it with Angular JS and Ionic 1
  • For web and mobile apps based on Angular 1.x
  • Royalty-free commercial usage
  • Technical support is included with the license
  • Use it with Angular 2/4/5/6/7 and Ionic 2/3/4
  • Visual Studio and VS Code integration
  • Royalty-free commercial usage
  • Technical support is included with the license
  • Use it when building with React JS
  • Collection of UI components for web and mobile
  • Royalty-free commercial usage
  • Technical support is included with the license
Buy framework license
See other licensing options

Select the framework you are interested in

Javascript
jQuery
Angular
Angular JS
React

Use Javascript when building with plain and simple JS.

Use jQuery when you have jQuery already included or if you are building with jQuery Mobile.

Use AngularJS when building with Angular 1.x or Ionic 1.

Use Angular when building with Angular 2/4/5/6/7 or Ionic 2/3/4.

Use it when you are building your app or website with React.

Do you need additional support seats?

The framework license comes with one support seat. ( +$50/seat )

Add the source code?

Price
Buy now
Customize & try demos locally
Sign in or start your free trial

What framework are you using?

Javascript
jQuery
AngularJS
Angular
Ionic
React
Other
Select a framework
Email address

Customize & try this demo locally
Sign in or start your free trial

We have to set you up with a trial for this to run 👍

Email address

Customize & try demos locally
You can download and use Mobiscroll for Free

What framework are you using?

Javascript
jQuery
AngularJS
Angular
Ionic
React
Other
Select a framework
Install demo in your app
Follow this quick, two minute install guide
Close window

Step 1.Install the Mobiscroll CLI from npm

Copy command
$ npm install -g @mobiscroll/cli

The CLI makes configuring your apps super simple 👍

Step 2.Run the following command in the root folder of your Ionic project

Copy command
$ mobiscroll config ionic
$ mobiscroll config ionic --lite

You will be prompted to log in with your mobiscroll account. Set your password here

Create an Ionic 3 & Mobiscroll starter with the CLI:

$ mobiscroll start ionic myStarter

Run this command for Ionic 4 & Mobiscroll starter:

$ mobiscroll start ionic-angular myStarter

Step 3.Copy the code into your app. HTML goes into the markup, TS into Typescript.

Copy TS
Copy HTML
Copy CSS

Run ionic serve in the root folder of your app 🎉

Copy command
$ ionic serve
Thanks for downloading
Try and customize the app locally

Extract the zip file and run the project like any Ionic app. Make sure to have Ionic CLI installed and open the terminal in the app root folder.

Step 1. Run in root folder
$ npm install
Step 2. Start the app
$ ionic serve

Let us know if we can help and enjoy!

Change your password
Need to update your password? Enter and hit the button below

You are setting a password for the account

New Password Required Enter at least 6 characters
Change your password
Need to update your password? Enter and hit the button below

Your password has been changed!

Thanks for downloading
Customize demos locally

Everything is set up so that you can dig in right away and start exploring.

We have set up a trial so that you can try the demos locally.

Extract the zip file and open the demo in your favorite browser. To install Mobiscroll in your project follow instructions from this page.


Let us know if we can help and enjoy! 👍

Thanks for downloading
Customize demos locally

Please extract the zip file and run the project like any Angular CLI app. Make sure to have the Angular CLI installed.

For installation and usage, extract the zip file and open a terminal window and follow these steps.

Step 1. Run in root folder
$ npm install
Step 2. Start the app
$ ng serve --open

Let us know if we can help and enjoy! 👍

Thanks for downloading
Customize demos locally

Everything is set up so that you can dig in right away and start exploring.

We have set up a trial so that you can try the demos locally.

The easiest way to get started is to follow the installation steps and by grabbing the code directly from the demo page. Let us know if we can help and enjoy!

You'll find a fully functional Kitchen-sink Ionic app in the zip file.

Thanks for downloading
Customize demos locally

Everything is set up so that you can dig in right away and start exploring.

We have set up a trial so that you can try the demos locally.

The demos are using Babel's in-browser ES6 and JSX transformer. Extract the zip file and open the demo in your browser. To install Mobiscroll in your project follow instructions from this page.


Let us know if we can help and enjoy! 👍

Demos
Alerts & notifications
Alert Notifications Note
Components
Alerts & notifications 3
Buttons 4
Calendar 27
Cards 14
Color 10
Date & Time 20
Event Calendar 25
Forms 9
Grid layout 7
Image 7
Inputs & fields 6
Listview 17
Measurement 10
Navigation 8
Number 8
Numpad 13
Option List 4
Popup 10
Range 19
Scroller 7
Scrollview 5
Select 16
Slider & progress 4
Styling 6
Timer 5
Timespan 6
Toggle & Radio 4
Treelist 7
Theme Select
Mobiscroll
Mobiscroll Dark
Material
Material Dark
iOS
iOS Dark
Bootstrap
Windows
Windows Dark
Display Mode
Language Locale
See other demos and change options
Theme
Display
Locale
See other demos