2.0.2 • Published 2 years ago
zindex-maximumvalue-manager v2.0.2
Z-Index Manager
Find the zIndex maximum on the web
import {zIndexManager} from "../../browser_modules/zindex-maximumvalue-manager/zIndexManager.js";
// get instance
const zIndexManagerInstance = new zIndexManager();
// get z-index maximum
console.log(zIndexManagerInstance.getZIndex('body')); // 1
Installation
How to install from Frontle
$ frontle install zindex-maximumvalue-manager
How to install from Web
For typical web projects, copy and use the code at zIndexManager.js in below repositorys
https://github.com/Artifriends-inc/zIndexManager (zIndexManager.js)
Function
new zIndexManager()
Create "zIndexMaanger" object. only one object is created using a single-tone pattern
// get instance
const zIndexManagerInstance = new zIndexManager();
zIndexManagerInstance.getZIndex(element)
Gets the largest zIndex value within the specified element
// get z-index maximum
console.log(zIndexManagerInstance.getZIndex('body')); // 1
People
The original author of zindex-maximumvalue-manager is MushStory