static
Class WireIt.WireIt
static
HTMLElement
cn
(
tag
,
[domAttributes]
,
[styleAttributes]
,
[innerHTML]
)
tag
<String>
The tagName to create (ex: 'div', 'a', ...)
[domAttributes]
<Object>
see inputEx.sn
[styleAttributes]
<Object>
see inputEx.sn
[innerHTML]
<String>
The html string to append into the created element
HTMLElement
static
Array
compact
(
arr
)
arr
<Array>
Array to compact
Array
static
Integer
getIntStyle
(
el
,
style
)
el
<HTMLElement>
The element
style
<String>
css-property to get
Integer
static
Integer
indexOf
(
el
,
arr
)
el
<Any>
element to search for
arr
<Array>
Array to search into
Integer
static
void
sn
(
el
,
)
,
styleAttributes
)
el
<HTMLElement>
The element to set attributes to
)
<Object} domAttributes An object containing key/value pairs to set as node attributes (ex: {id: 'myElement', className: 'myCssClass', ...>
styleAttributes
<Object>
Same thing for style attributes. Please use camelCase for style attributes (ex: backgroundColor for 'background-color')