Skip to main content

alphaTab.platform.IHtmlElementContainer

A UI element implementation wrapping HTML elements.

 interface IHtmlElementContainer extends IContainer

Properties​

element​

The wrapped UI element.

readonly element: HTMLElement;

height​

Gets or sets the height of the control. (Inherited from IContainer )

height: number;

isVisible​

Gets a value indicating whether the control is visible. (Inherited from IContainer )

readonly isVisible: boolean;

mouseDown​

This event occurs when a mouse/finger press happened on the control. (Inherited from IContainer )

mouseMove​

This event occurs when a mouse/finger moves on top of the control. (Inherited from IContainer )

mouseUp​

This event occurs when a mouse/finger is released from the control. (Inherited from IContainer )

resize​

This event occurs when the control was resized. (Inherited from IContainer )

resize: IEventEmitter;

scrollLeft​

Gets or sets the horizontal scroll offset of this control if it is scrollable. (Inherited from IContainer )

scrollLeft: number;

scrollTop​

Gets or sets the vertical scroll offset of this control if it is scrollable. (Inherited from IContainer )

scrollTop: number;

width​

Gets or sets the width of the control. (Inherited from IContainer )

width: number;

Methods​

appendChild​

Adds the given child control to this container. (Inherited from IContainer )

appendChild(child: IContainer): void
ParameterSummary
childAll

The child control to add.

clear​

Clears the container and removes all child items. (Inherited from IContainer )

clear(): void

setBounds​

Sets the position and size of the container for efficient repositioning. (Inherited from IContainer )

setBounds(x: number, y: number, w: number, h: number): void
ParameterSummary
xAll

The X-position

yAll

The Y-position

wAll

The width

hAll

The height

stopAnimation​

Stops the animations of this control immediately. (Inherited from IContainer )

stopAnimation(): void

transitionToX​

Tells the control to move to the given X-position in the given time. (Inherited from IContainer )

transitionToX(duration: number, x: number): void
ParameterSummary
durationAll

The milliseconds that should be needed to reach the new X-position

xAll

The new X-position