new BBElement(name, valueopt)
- Source:
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
name |
string | |||
value |
string |
<optional> |
null
|
Members
(readonly) tagName :string
- Source:
Type:
- string
(readonly) childNodes :Array.<BBNode>
- Source:
Type:
- Array.<BBNode>
(readonly) keys :Map
- Source:
Type:
- Map
innerBBCode :string
- Source:
Type:
- string
(readonly) outerBBCode :string
- Source:
Type:
- string
Methods
appendChild(bbNode)
- Source:
Parameters:
Name | Type | Description |
---|---|---|
bbNode |
BBNode |
removeChild(bbNode)
- Source:
Parameters:
Name | Type | Description |
---|---|---|
bbNode |
BBNode |
tags(keys) → {object}
- Source:
Converts an array of keys into an opening and closing tag string
Parameters:
Name | Type | Description |
---|---|---|
keys |
Array.<Object> |
Returns:
- Type
- object
querySelector(tagName) → {BBNode}
- Source:
Parameters:
Name | Type | Description |
---|---|---|
tagName |
string |
Returns:
- Type
- BBNode
querySelectorAll(tagName) → {Array.<BBNode>}
- Source:
Parameters:
Name | Type | Description |
---|---|---|
tagName |
string |
Returns:
- Type
- Array.<BBNode>