Skip to content

getZIndex

Gets the z-index of the given element.

Import:

import { getZIndex } from 'obsidian-dev-utils/html-element';

Signature:

function getZIndex(el: Element): number

Parameters:

ParameterTypeDescription
elElementThe element to get the z-index of.

Returns: number — The z-index of the element.