Skip to content

jessemlay/ExtJs-Idle-Timer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Idle Timer for ExtJs 4

Inspired by Idle Timer for YUI by Nicolas Zakas.

Installation

Copy source files to your project, use Ext.require() to use it in your application.

Usage

Create Utils.IdleTimer object and use start() function to start timer. Assign idle and/or active listeners to perform actions when timer went into idle or active state.

var timer = Ext.create('Utils.IdleTimer', {
    timeout: 10000,
    listeners: {
        idle: function(){
            console.log('Application went into idle state');
        },
        active: function(){
            console.log('Application went into active state');
        }
    }
});

timer.start();

About

Idle Timer for ExtJs 4

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%