Skip to content
This repository has been archived by the owner on Jun 9, 2023. It is now read-only.

Latest commit

 

History

History
45 lines (35 loc) · 2.73 KB

cp.ui.Popover.md

File metadata and controls

45 lines (35 loc) · 2.73 KB

docs » cp.ui.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

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

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

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