docs » plugins.core.setup
Manager for the CommandPost Setup Screen.
- Constants - Useful values which cannot be changed
- DEFAULT_HEIGHT
- DEFAULT_TITLE
- DEFAULT_WIDTH
- enabled
- FIRST_PRIORITY
- LAST_PRIORITY
- visible
- Variables - Configurable values
- onboardingRequired
- position
- Functions - API calls offered directly by the extension
- addPanel
- currentPanel
- delete
- focus
- getLabel
- injectScript
- new
- nextPanel
- setPanelRenderer
- show
- update
| 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. |
| 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. |
| Signature | plugins.core.setup.addPanel(newPanel) -> panel |
|---|---|
| Type | Function |
| Description | Adds the new panel to the manager. Panels are created via the |
| Parameters |
|
| Returns |
|
| Signature | plugins.core.setup.currentPanel() -> string |
|---|---|
| Type | Function |
| Description | The Current Panel |
| Parameters |
|
| Returns |
|
| Signature | plugins.core.setup.delete() -> none |
|---|---|
| Type | Function |
| Description | Deletes the Setup Panels. |
| Parameters |
|
| Returns |
|
| Signature | plugins.core.setup.focus() -> none |
|---|---|
| Type | Function |
| Description | Focuses on the Setup Panels window. |
| Parameters |
|
| Returns |
|
| Signature | plugins.core.setup.getLabel() -> string |
|---|---|
| Type | Function |
| Description | Returns the Webview label. |
| Parameters |
|
| Returns |
|
| Signature | plugins.core.setup.injectScript(script) -> none |
|---|---|
| Type | Function |
| Description | Injects JavaScript into the Setup Panels. |
| Parameters |
|
| Returns |
|
| Signature | plugins.core.setup.new() -> none |
|---|---|
| Type | Function |
| Description | Creates the Setup Panels. |
| Parameters |
|
| Returns |
|
| 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 |
|
| Returns |
|
| Signature | plugins.core.setup.setPanelRenderer(renderer) -> none |
|---|---|
| Type | Function |
| Description | Sets a Panel Renderer |
| Parameters |
|
| Returns |
|
| Signature | plugins.core.setup.show() -> none |
|---|---|
| Type | Function |
| Description | Shows the Setup Panels. |
| Parameters |
|
| Returns |
|
| Signature | plugins.core.setup.update() -> none |
|---|---|
| Type | Function |
| Description | Updates the Setup Panels. |
| Parameters |
|
| Returns |
|