docs » cp.ui.PopUpButton


Pop Up Button Module.

API Overview

  • Constructors - API calls which return an object, typically one that offers API methods
  • Methods - API calls which can only be made on an object returned by a constructor

API Documentation

Constructors

new

Signature cp.ui.PopUpButton.new(axuielement, function) -> cp.ui.PopUpButton
Type Constructor
Description Creates a new PopUpButton.
Parameters
  • * parent - The parent table. Should have a `isShowing` property.
Returns
  • * The new `PopUpButton` instance.

Methods

snapshot

Signature `cp.ui.PopUpButton:snapshot([path]) -> hs.image nil` </span>
Type Method
Description Takes a snapshot of the UI in its current state as a PNG and returns it.
Parameters
  • * path - (optional) The path to save the file. Should include the extension (should be `.png`).

results matching ""

    No results matching ""