jsdoc/tutorial~Tutorial(name, content, type)
Represents a single JSDoc tutorial.
Constructor
new Tutorial(name, content, type)
Parameters:
Name | Type | Description |
---|---|---|
name
|
string | Tutorial name. |
content
|
string | Text content. |
type
|
number | Source formating. |
Methods
addChild(child)
Adds new children to current node.
Parameters:
Name | Type | Description |
---|---|---|
child
|
Tutorial | New child. |
parse() → string
Prepares source.
Returns:
HTML source.
- Type:
- string
removeChild(child)
Removes children from current node.
Parameters:
Name | Type | Description |
---|---|---|
child
|
Tutorial | Old child. |
setParent(parentnull)
Moves children from current parent to different one.
Parameters:
Name | Type | Description |
---|---|---|
parent null
|
Tutorial | New parent. If null, the tutorial has no parent. |