Internationalisation
Bundled Plugins API
Popover
UI Group.

API Overview

  • Functions - API calls offered directly by the extension
  • matches
  • Constructors - API calls which return an object, typically one that offers API methods
  • Popover
  • Methods - API calls which can only be made on an object returned by a constructor
  • hide

API Documentation

Functions

matches

Signature
cp.ui.Popover.matches(element) -> boolean
Type
Function
Description
Checks to see if an element matches what we think it should be.
Parameters
  • element - An axuielementObject to check.
Returns
  • true if matches otherwise false

Constructors

Popover

Signature
cp.ui.Popover(parent, uiFinder) -> Popover
Type
Constructor
Description
Creates a new Popover instance.
Parameters
  • parent - The parent object.
  • uiFinder - A function which will return the hs._asm.axuielement when available.
Returns
  • A new Popover object.

Methods

hide

Signature
cp.ui.Popover:hide() -> Popover
Type
Method
Description
Hides a popover.
Parameters
  • None
Returns
  • Self
Last modified 1mo ago