Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/live/deps.ts>inspectVSCode.DomInspector

deco is the edge-native site editor and app framework for building dynamic, high-performance sites with a built-in visual admin UI.
Go to Latest
class inspectVSCode.DomInspector
Re-export
import { inspectVSCode } from "https://deno.land/x/live@1.36.6/deps.ts";
const { DomInspector } = inspectVSCode;

Constructors

new
DomInspector(element: HTMLElement, options?: DomInspectorOptions)

Properties

private
active: boolean
private
element: HTMLElement
private
optional
hoveredElement: HTMLElement
private
optional
onDeactivate: () => unknown
private
options: DomInspectorOptions
activate: (onDeactivate?: () => void) => unknown
addEventListeners: () => unknown

Add event listeners for DOM-inspectorey actions

clean: (element: HTMLElement) => unknown
deactivate: () => unknown
getManifestKey: (element: HTMLElement) => string | null
handleCancelKey: (event: KeyboardEvent) => unknown
handleClick: (event: MouseEvent) => unknown
handleKeydown: (event: KeyboardEvent) => unknown
handleMouseOut: (event: MouseEvent) => unknown
handleMouseOver: (event: MouseEvent) => unknown
isActive: () => unknown
paint: (element: HTMLElement) => unknown