new Layout(layoutElement, options)
Class constructor.
Methods
Links
new LinkedHeading(...)
Represents a linked heading.
Class constructor.
Links
Layout#constructNavFromDOM
Instance Method
Construct the sidebar navigation from headings within the DOM.
Links
Layout#highlightNavItems(navigation)
Instance Method
Enables navigation item highlighting based on scroll position.
Relies on heading ids and anchor href being the same.
Links
Layout.getDataAttributes(layoutElement)
Static Method
Get the data attributes from the layoutEl. If the layout is being set up
declaratively, this method is used to extract the data attributes from the DOM.
Links
Layout.init(rootElement, options)
Static Method
Initialise layout component.
Links
new Layout(layoutElement, options)
Class constructor.
Methods
Links