Jump to content

Connect SuperML | Leeroopedia MCP: Equip your AI agents with best practices, code verification, and debugging knowledge. Powered by Leeroo — building Organizational Superintelligence. Contact us at founders@leeroo.com.

Implementation:SeleniumHQ Selenium Closure UI SubMenu

From Leeroopedia
Knowledge Sources
Domains JavaScript_Atoms, Vendored_Library
Last Updated 2026-02-12 00:00 GMT

Overview

Vendored Google Closure Library UI module providing menu items that open a submenu, used by Selenium JavaScript atoms.

Description

goog.ui.SubMenu is a vendored copy of the Google Closure Library module. It extends `goog.ui.MenuItem` to represent a menu item that opens a child submenu on hover or keyboard navigation. It manages show/dismiss timers (with a default 218ms delay), uses `goog.positioning.AnchoredViewportPosition` for submenu placement, and delegates rendering to `goog.ui.SubMenuRenderer`. Selenium uses this for its JavaScript atom infrastructure.

Usage

This module is consumed internally by Selenium's JavaScript atoms build system. Not imported directly by end users.

Code Reference

Source Location

Key Exports

goog.provide('goog.ui.SubMenu');

Related Pages

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment