Home

Awesome

ExtJS-ActivityMonitor

Ext.ux.ActivityMonitor() is a utility class intended for use with ExtJS 4.x., 5.x, 6.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.

This repo is a fork of https://github.com/arthurakay/ExtJS-Activity-Monitor, which is no more maintained

This component is used in Arhia applications and we aim to maintain it.

Usage

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

Configs:

Changelog

1.1

Ext.ux.ActivityMonitor.init({
	isInactive: (monitor) => {
		console.log("User is inactive, should disconnect");
		// then we restart the monitor for further inactivity tracking
		monitor.start();
	}
});
Ext.ux.ActivityMonitor.start();