new ScreenElement( tagName )

Description

Base class for any ScreenElement

Parameters
Name Type Description
tagName string
Examples
let body = new ScreenElement("div");
body.append( new ScreenElement("pre").setText("My text") );

Members


element :HTMLElement

Details
HTMLElement

Methods


setText( txt )

Parameters
Name Type Description
txt string

appendList( elements, join )

Parameters
Name Type Description
elements
join

append( ...elements )

Parameters
Name Type Attributes Description
elements string | ScreenElement <repeatable>

addClassList( classes )

Parameters
Name Type Description
classes Array.<string>

addClass( ...classes )

Parameters
Name Type Attributes Description
classes string <repeatable>

removeClass( ...classes )

Parameters
Name Type Attributes Description
classes string <repeatable>