Skip to content

A JavaScript utility class, written for ExtJS 4, that monitors the browser window for user activity.

Notifications You must be signed in to change notification settings

arthurakay/ExtJS-Activity-Monitor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Ext.ux.ActivityMonitor() is a utility class intended for use with ExtJS 4.x.

ActivityMonitor() watches the browser's BODY element for mouse movement and keystrokes - a realistic way to judge if the user is actively viewing your web application.

Usage:

=====

Ext.ux.ActivityMonitor.init({ verbose : true });
Ext.ux.ActivityMonitor.start();

=====

Configs:

  - verbose (Boolean): Whether or not the ActivityMonitor() should output messages to the JavaScript console.
  - interval (Integer): How often (in millseconds) the monitorUI() method is executed after calling start()
  - maxInactive (Integer): The longest amount of time to consider the user "active" without regestering new mouse movement or keystrokes

  - isActive (Function): Called each time monitorUI() detects the user is currently active (defaults to Ext.emptyFn)
  - isInactive (Funtion): Called when monitorUI() detects the user is inactive (defaults to Ext.emptyFn)

About

A JavaScript utility class, written for ExtJS 4, that monitors the browser window for user activity.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published