Module: legend-utils

CORE PACK

Oracle® JavaScript Extension Toolkit (JET)
21.0.0

G39657-01

QuickNav

JET Modules

See JET Module Loading for an overview of module usage within JET.

Description

A collection of utility functions related to determining the dimensions of an element.

Functions

getPreferredSize(element, width, height) : {{ width: number; height: number; }|undefined}

Parameters:
Name Type Description
element HTMLElement An oj-c-legend element.
width number The width allocated for rendering the legend.
height number The height allocated for rendering the legend.
Returns:

An object containing preferred width and height required by legend to render and it returns undefined for when the element is not attached to the dom.

Type
{ width: number; height: number; }|undefined