Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/deco/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/deco@1.35.3/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