QuickLinks

Quick links for anchoring on the page

Source:
Properties:
Name Type Description
headings Array

Section headings found in article

selectors Object

DOM element selectors

css Object

quick link elements class names

Methods

(inner) attachTriggers(selector, callbacks)

Source:

Attaches Intersection Observer trigger to all sections within the article

Parameters:
Name Type Description
selector string

CSS selector for the transition trigger element.

callbacks array

Array of callback handlers and keys.

(inner) init()

Source:

Look for section headings in the article body and generate quick links accordingly.

(inner) menuHighlight(boundary, key, event)

Source:

Hightlights section menu item when corresponding section is visible

Parameters:
Name Type Description
boundary object

The bounding box values of the trigger element.

key string

String to select the appropriate status setting.

event object

Intersection Observer callback object with InView.

(inner) transitionSectionsDropdown(boundary, key, event)

Source:

Handles sticky behavior of the quickLinks article menu select Used on the 'Issues' and 'Featured' template

Parameters:
Name Type Description
boundary object

The bounding box values of the trigger element.

key string

String to select the appropriate status setting.

event object

Intersection Observer callback object with InView.