Functions
-
getPreferredSize(element, width, height) : {{ width: number; height: number; }|undefined}
-
Parameters:
Name Type Description elementHTMLElement An oj-c-legend element. widthnumber The width allocated for rendering the legend. heightnumber 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