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

Latest commit

 

History

History
183 lines (155 loc) · 13.7 KB

File metadata and controls

183 lines (155 loc) · 13.7 KB

docs » plugins.core.setup


Manager for the CommandPost Setup Screen.

Submodules

API Overview

API Documentation

Constants

Signature plugins.core.setup.DEFAULT_HEIGHT -> number
Type Constant
Description The default panel height.
Signature plugins.core.setup.DEFAULT_TITLE -> string
Type Constant
Description The default panel title.
Signature plugins.core.setup.DEFAULT_WIDTH -> number
Type Constant
Description The default panel width.
Signature plugins.core.setup.enabled <cp.prop: boolean>
Type Constant
Description Set to true if the manager is enabled. Defaults to false.
Signature plugins.core.setup.FIRST_PRIORITY -> number
Type Constant
Description The first panel priority.
Signature plugins.core.setup.LAST_PRIORITY -> number
Type Constant
Description The last panel priority.
Signature plugins.core.setup.visible <cp.prop: boolean; read-only>
Type Constant
Description A property indicating if the welcome window is visible on screen.

Variables

Signature plugins.core.setup.onboardingRequired <cp.prop: boolean>
Type Variable
Description Set to true if on-boarding is required otherwise false. Defaults to true.
Signature plugins.core.setup.position <cp.prop: table>
Type Variable
Description The last known position of the Setup Window as a frame.

Functions

Signature plugins.core.setup.addPanel(newPanel) -> panel
Type Function
Description Adds the new panel to the manager. Panels are created via the
Parameters
  • newPanel - The panel to add.
Returns
  • The manager.
Signature plugins.core.setup.currentPanel() -> string
Type Function
Description The Current Panel
Parameters
  • None
Returns
  • The current panel as a string
Signature plugins.core.setup.delete() -> none
Type Function
Description Deletes the Setup Panels.
Parameters
  • None
Returns
  • None
Signature plugins.core.setup.focus() -> none
Type Function
Description Focuses on the Setup Panels window.
Parameters
  • None
Returns
  • None
Signature plugins.core.setup.getLabel() -> string
Type Function
Description Returns the Webview label.
Parameters
  • None
Returns
  • The Webview label as a string.
Signature plugins.core.setup.injectScript(script) -> none
Type Function
Description Injects JavaScript into the Setup Panels.
Parameters
  • script - The JavaScript you want to inject as a string.
Returns
  • None
Signature plugins.core.setup.new() -> none
Type Function
Description Creates the Setup Panels.
Parameters
  • None
Returns
  • None
Signature plugins.core.setup.nextPanel() -> boolean
Type Function
Description Moves to the next panel. If the window is visible, the panel will be updated.
Parameters
  • None
Returns
  • true if there was another panel to move to, or false if no panels remain.
Signature plugins.core.setup.setPanelRenderer(renderer) -> none
Type Function
Description Sets a Panel Renderer
Parameters
  • renderer - The renderer
Returns
  • None
Signature plugins.core.setup.show() -> none
Type Function
Description Shows the Setup Panels.
Parameters
  • None
Returns
  • None
Signature plugins.core.setup.update() -> none
Type Function
Description Updates the Setup Panels.
Parameters
  • None
Returns
  • None