Spatial Navigation for GeckoView - v3.2.0
    Preparing search index...

    Class FocusGroup

    Represents a logical group of focusable elements. Supports hierarchical nesting via dot-notation IDs.

    Index

    Constructors

    Properties

    _depth: number

    Cached depth for performance

    children: Map<string, FocusGroup> = ...

    Child groups

    element: HTMLElement
    id: string
    lastFocused: FocusableEntry | null
    members: FocusableEntry[]
    parent: FocusGroup | null = null

    Parent group (if nested)

    Accessors

    • get parentId(): string | null

      Get the parent group ID (or null if root).

      Returns string | null

    Methods

    • Check if navigation can exit this group in a given direction.

      Returns boolean

    • Find a child group by relative path. e.g., for group "sidebar", findChild("menu.item1") returns "sidebar.menu.item1"

      Parameters

      • relativePath: string

      Returns FocusGroup | null

    • Check if navigation should wrap within this group.

      Returns boolean