toc

Table of Contents (toc) module.

Source:

Members

(static) _maxTocLevel :number

Source:
Default Value:
  • []
Type:
  • number

(static) tocItems :Array

Source:
Default Value:
  • []
Type:
  • Array

Methods

(static) _buildTocHtmlList(items, appendTo)

Source:

Builds List of ToC Items

Parameters:
Name Type Description
items Array.<object>

ToC list of items

appendTo Element

HTML Element to append ToC list to

(static) _getTitle(el)

Source:

Get Title of Current ToC Element

Parameters:
Name Type Description
el Element

HTML element that serves as page

(static) generateTocItems()

Source:

Generate ToC Items

(static) getHtmlFragment() → {DocumentFragment}

Source:

Generate ToC Html Fragment

Returns:

HTML list element containing Table of Contents

Type
DocumentFragment