Module: legend-utils

CORE PACK

Oracle® JavaScript Extension Toolkit (JET)
19.0.0

G25385-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; }}

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.

Type
{ width: number; height: number; }