Table Of Contents Parser
Kind: global class
Extends: Array
Link: https://www.w3.org/TR/epub/#sec-nav-toc
- Toc ⇐
Array
- new Toc()
- instance
- .get(target) ⇒
object
- .parse(target) ⇒
Promise.<Toc>
- .clear()
- .destroy()
- .get(target) ⇒
- static
- .links :
Map
- .links :
Constructor
Get navigation item by href
Kind: instance method of Toc
Returns: object
- navItem
Param | Type |
---|---|
target | string |
Example
toc.get("chapter_001.xhtml")
toc.parse(target) ⇒ Promise.<Toc>
Parse out the toc items
Kind: instance method of Toc
Param | Type |
---|---|
target | Node | Array.<object> |
Clear navigation items
Kind: instance method of Toc
destroy
Kind: instance method of Toc
Kind: static property of Toc
Read only: true