addNewDiv Method

Add a new HTMLDivElement as a child of this viewport's div.

addNewDiv(className: string, overflowHidden: boolean, z: number): HTMLDivElement

@returns the new div.

Parameter Type Description
className string The CSS class name to apply to the div.
overflowHidden boolean Whether to set div.style.overflow to "hidden" instead of "visible".
z number The Z index of the div relative to its sibling HTMLElements.

Returns - HTMLDivElement

the new div.

Defined in

Last Updated: 23 November, 2024