Skip to main content

safeComputedStyle

FitFileViewer - API Documentation v30.0.1


FitFileViewer - API Documentation / utils/ui/controls/enableTabButtonsHelpers / safeComputedStyle

Function: safeComputedStyle()

safeComputedStyle(element: Element, property: string): string | undefined

Defined in: utils/ui/controls/enableTabButtonsHelpers.ts:11

Safely get computed style values when available.

Parameters​

element​

Element

Element to inspect.

property​

string

CSS property name.

Returns​

string | undefined

Computed style value when available.