Class that represents the focus trap.

Export

Hierarchy

  • FocusTrap

Properties

_firstFocusableElement: HTMLElement
_focusBottomCallback: Generic
_focusTopCallback: Generic
_focusableElements: HTMLElement[]
_isFocusTrap: boolean
_lastFocusableElement: HTMLElement
_predictableBottomElement: HTMLElement
_predictableTopElement: HTMLElement
_targetElement: HTMLElement

Constructors

Methods

  • Parameters

    • focusableElement: HTMLElement
    • selfElement: HTMLElement

    Returns void

Accessors

  • get bottomElement(): HTMLElement
  • Getter that allows to obtain the bottomElement reference

    Memberof

    OSFramework.Behaviors.FocusTrap

    Returns HTMLElement

  • get topElement(): HTMLElement
  • Getter that allows to obtain the bottomElement reference

    Memberof

    OSFramework.Behaviors.FocusTrap

    Returns HTMLElement

  • get focusableElements(): HTMLElement[]
  • Getter that allows to obtain the list of focusable elements

    Memberof

    OSFramework.Behaviors.FocusTrap

    Returns HTMLElement[]