Properties
msconstant
#
This setups the Minerva skin. It should run without errors even if MobileFrontend is not installed.
- Source:
selectorconstant
#
The top level menu.
- Source:
Methods
displayDrawer(drawer, options)
#
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
drawer |
Drawer | to display |
||||||
options |
Object | for display Properties
|
- Source:
getClassesForItem($item) → {Object}
#
Parameters:
Name | Type | Description |
---|---|---|
$item |
jQuery | The added list item, or null if no element was added. |
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 |
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 |
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 |
init()
#
Init portlet link items added by gadgets prior to Minerva loading.
init()
#
Wire up the main menu
- Source:
initTabsScrollPosition()
#
When tabs are present and one is selected, scroll the selected tab into view.
initWatchstarCta($watchstar)
#
insertIcon($link, id)
#
Insert icon into the portlet link.
Parameters:
Name | Type | Description |
---|---|---|
$link |
jQuery | |
id |
string
|
undefined
|
for icon |
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 |
Returns:
- Type
- Overlay
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
#
IssueSummaryMap
#
Type:
- Object.<string, Array.<IssueSummary>>