core/popover_region_controller

Controls the popover region element.

See template: core/popover_region

Source:
Since:
  • 3.2
License:
  • http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Methods

(inner) closeMenu()

Source:

Hide the popover.

Note: This triggers the menuClosed event.

(inner) contentItemHasFocus() → {bool}

Source:

Check if a content item has focus.

Returns:
Type
bool

(inner) focusContentItem(item)

Source:

Focus the given content item or the first focusable element within the content item.

Parameters:
Name Type Description
item object

The content item jQuery element

(inner) focusFirstContentItem()

Source:

Set focus on the first content item in the list.

(inner) focusLastContentItem()

Source:

Set focus on the last content item in the list.

(inner) focusMenuToggle()

Source:

Sets the focus on the menu toggle.

(inner) focusNextContentItem()

Source:

Set focus on the content item after the item that currently has focus in the list.

(inner) focusPreviousContentItem()

Source:

Set focus on the content item preceding the item that currently has focus in the list.

(inner) getContent() → {jQuery}

Source:

Return the content element.

Returns:

object

Type
jQuery

(inner) getContentContainer() → {jQuery}

Source:

Return the container element for the content element.

Returns:

object

Type
jQuery

(inner) getContentItemWithFocus() → {jQuery}

Source:

Return the currently focused content item.

Returns:

object

Type
jQuery

(inner) isMenuOpen() → {bool}

Source:

Checks if the popover is displayed.

Returns:
Type
bool

(inner) openMenu()

Source:

Show the popover.

Note: This triggers the menuOpened event.

(inner) registerBaseEventListeners()

Source:

Register the minimal amount of listeners for the popover to function.

(inner) registerListNavigationEventListeners()

Source:

Set up the event listeners for keyboard navigating a list of content items.

(inner) startLoading()

Source:

Set the loading state on this popover.

Note: This triggers the startLoading event.

(inner) stopLoading()

Source:

Undo the loading state on this popover.

Note: This triggers the stopLoading event.

(inner) toggleMenu()

Source:

Toggle the visibility of the popover.

(inner) updateButtonAriaLabel()

Source:

Set the appropriate aria label on the popover toggle.