Properties

msconstant #

This setups the Minerva skin. It should run without errors even if MobileFrontend is not installed.

Source:

overflowSubmenuSelectorconstant #

The secondary overflow submenu component container.

Source:

selectorconstant #

The top level menu.

Source:

Methods

bind(window, toolbar) #

Parameters:

Name Type Description
window Window
toolbar Element
Source:

displayDrawer(drawer, options) #

Parameters:

Name Type Description
drawer Drawer

to display

options Object

for display

Properties
Name Type Description
hideOnScroll boolean

whether a scroll closes the drawer

Source:

getClassesForItem($item) → {Object} #

Parameters:

Name Type Description
$item jQuery

The added list item, or null if no element was added.

Source:

Returns:

of arrays with mandatory class names for list item elements.

Type
Object

getIssues(allIssues, section) → {Array.<jQuery>} #

Obtains the list of issues for the current page and provided section

Parameters:

Name Type Description
allIssues IssueSummaryMap

mapping section {number} to {IssueSummary}

section number | string

either KEYWORD_ALL_SECTIONS or a number relating to the section the issues belong to

Source:

Returns:

array of all issues.

Type
Array.<jQuery>

getNamespaceHeadingText(namespaceID) → {string} #

Obtain a suitable heading for the issues overlay based on the namespace

Parameters:

Name Type Description
namespaceID number

is the namespace to generate heading for

Source:

Returns:

heading for overlay

Type
string

hookHandler(listItem, data) #

Parameters:

Name Type Description
listItem HTMLElement | null

The added list item, or null if no element was added.

data Object
Source:

init() #

Init portlet link items added by gadgets prior to Minerva loading.

Source:

init() #

Wire up the main menu

Source:

initTabsScrollPosition() #

When tabs are present and one is selected, scroll the selected tab into view.

Source:

initWatchstarCta($watchstar) #

A CtaDrawer should show for anonymous users.

Parameters:

Name Type Description
$watchstar jQuery
Source:

insertIcon($link, id) #

Insert icon into the portlet link.

Parameters:

Name Type Description
$link jQuery
id string | undefined

for icon

Source:

lockScroll() #

Lock scroll of viewport.

Source:

pageIssuesOverlay(issues, section, namespaceID) → {Overlay} #

Overlay for displaying page issues

Parameters:

Name Type Description
issues Array.<IssueSummary>

list of page issue summaries for display.

section string
namespaceID number
Source:

Returns:

Type
Overlay

render(window, toolbar) #

Parameters:

Name Type Description
window Window
toolbar Element
Source:

renderDownloadButton(window, overflowList) #

Initialize and inject the download button

There are many restrictions when we can show the download button, this function should handle all device/os/operating system related checks and if device supports printing it will inject the Download icon

Parameters:

Name Type Description
window Window
overflowList Element | null
Source:

reportDisabled() → {boolean} #

Type Definitions

IssueSummary #

Type:

  • Object

Properties:

Name Type Description
issue PageIssue
$el jQuery

where the issue was extracted from

iconString string

a string representation of icon. This is kept for template compatibility (our views do not yet support composition).

text string

HTML string.

Source:

IssueSummaryMap #

Type:

Source:

PageIssue #

Properties:

Name Type Description
severity string

A SEVERITY_LEVEL key.

grouped boolean

True if part of a group of multiple issues, false if singular.

icon Icon
Source: