Search
Preparing search index...
The search index is not available
gtools
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
gtools
dom/element-builder
ElementBuilder
Class ElementBuilder
Hierarchy
ElementBuilder
Index
Constructors
constructor
Properties
attributes
content
Buffer
result
styles
Methods
add
Content
attribute
build
build
And
Append
To
child
clazz
clear
Content
content
finish
get
id
reset
style
set
Context
start
Constructors
Private
constructor
new
Element
Builder
(
elementName
:
string
, parent
?:
ElementBuilder
)
:
ElementBuilder
Parameters
elementName:
string
Optional
parent:
ElementBuilder
Returns
ElementBuilder
Properties
Private
attributes
attributes
:
StringMap
<
string
>
= {}
Private
Readonly
content
Buffer
content
Buffer
:
(
string
|
HTMLElement
)
[]
= []
Private
Optional
result
result
:
HTMLElement
Private
styles
styles
:
StringMap
<
string
>
= {}
Methods
add
Content
add
Content
(
newContent
:
string
|
HTMLElement
)
:
ElementBuilder
Parameters
newContent:
string
|
HTMLElement
Returns
ElementBuilder
attribute
attribute
(
key
:
string
, value
:
string
)
:
ElementBuilder
Parameters
key:
string
value:
string
Returns
ElementBuilder
build
build
(
)
:
HTMLElement
Returns
HTMLElement
build
And
Append
To
build
And
Append
To
(
parent
:
HTMLElement
)
:
ElementBuilder
Parameters
parent:
HTMLElement
Returns
ElementBuilder
child
child
(
elementName
:
string
)
:
ElementBuilder
Parameters
elementName:
string
Returns
ElementBuilder
clazz
clazz
(
clazz
:
string
)
:
ElementBuilder
Parameters
clazz:
string
Returns
ElementBuilder
clear
Content
clear
Content
(
)
:
ElementBuilder
Returns
ElementBuilder
content
content
(
newContent
:
string
|
HTMLElement
)
:
ElementBuilder
Parameters
newContent:
string
|
HTMLElement
Returns
ElementBuilder
finish
finish
(
)
:
ElementBuilder
Returns
ElementBuilder
get
get
(
)
:
undefined
|
HTMLElement
Returns
undefined
|
HTMLElement
id
id
(
id
:
string
)
:
ElementBuilder
Parameters
id:
string
Returns
ElementBuilder
reset
reset
(
)
:
ElementBuilder
Returns
ElementBuilder
style
style
(
key
:
CSSStyleDeclaration
, value
:
string
)
:
ElementBuilder
Parameters
key:
CSSStyleDeclaration
value:
string
Returns
ElementBuilder
Static
set
Context
set
Context
(
context
:
Document
)
:
void
Parameters
context:
Document
Returns
void
Static
start
start
(
elementName
:
string
)
:
ElementBuilder
Parameters
elementName:
string
Returns
ElementBuilder
Modules
dom/element-
builder
Element
Builder
constructor
attributes
content
Buffer
result
styles
add
Content
attribute
build
build
And
Append
To
child
clazz
clear
Content
content
finish
get
id
reset
style
set
Context
start
Generated using
TypeDoc