docs » plugins.core.toolbox.manager
Manager for the CommandPost Toolbox Window.
- Constants - Useful values which cannot be changed
- DEFAULT_HEIGHT
- DEFAULT_WIDTH
- lastTab
- position
- WEBVIEW_LABEL
- Variables - Configurable values
- _handlers
- _panels
- Functions - API calls offered directly by the extension
- addHandler
- addPanel
- currentPanelID
- focus
- getHandler
- getLabel
- getWebview
- hide
- init
- injectScript
- maxPanelHeight
- new
- refresh
- selectPanel
- setPanelRenderer
- show
| Signature | plugins.core.toolbox.manager.DEFAULT_HEIGHT -> number |
|---|---|
| Type | Constant |
| Description | Default Height of Preferences Window |
| Signature | plugins.core.toolbox.manager.DEFAULT_WIDTH -> number |
|---|---|
| Type | Constant |
| Description | Default Width of Preferences Window |
| Signature | plugins.core.toolbox.manager.lastTab |
|---|---|
| Type | Constant |
| Description | Returns the last tab saved in settings. |
| Signature | plugins.core.toolbox.manager.position |
|---|---|
| Type | Constant |
| Description | Returns the last frame saved in settings. |
| Signature | plugins.core.toolbox.manager.WEBVIEW_LABEL -> string |
|---|---|
| Type | Constant |
| Description | The WebView Label |
| Signature | plugins.core.toolbox.manager._handlers -> table |
|---|---|
| Type | Variable |
| Description | Table containing handlers. |
| Signature | plugins.core.toolbox.manager._panels -> table |
|---|---|
| Type | Variable |
| Description | Table containing panels. |
| Signature | plugins.core.toolbox.manager.addHandler(id, handlerFn) -> string |
|---|---|
| Type | Function |
| Description | Adds a Handler |
| Parameters |
|
| Returns |
|
| Signature | plugins.core.toolbox.manager.addPanel(params) -> plugins.core.toolbox.manager.panel |
|---|---|
| Type | Function |
| Description | Adds a new panel with the specified params to the preferences manager. |
| Parameters |
|
| Returns |
|
| Notes |
|
| Signature | plugins.core.toolbox.manager.currentPanelID() -> string |
|---|---|
| Type | Function |
| Description | Returns the panel ID with the highest priority. |
| Parameters |
|
| Returns |
|
| Signature | plugins.core.toolbox.manager.focus() -> boolean |
|---|---|
| Type | Function |
| Description | Puts focus on the Preferences Window. |
| Parameters |
|
| Returns |
|
| Signature | plugins.core.toolbox.manager.getHandler(id) -> string |
|---|---|
| Type | Function |
| Description | Returns the handler for a given ID. |
| Parameters |
|
| Returns |
|
| Signature | plugins.core.toolbox.manager.getLabel() -> string |
|---|---|
| Type | Function |
| Description | Returns the Webview label. |
| Parameters |
|
| Returns |
|
| Signature | plugins.core.toolbox.manager.getWebview() -> hs.webview |
|---|---|
| Type | Function |
| Description | Returns the Webview of the Preferences Window. |
| Parameters |
|
| Returns |
|
| Signature | plugins.core.toolbox.manager.hide() -> none |
|---|---|
| Type | Function |
| Description | Hides the Preferences Window. |
| Parameters |
|
| Returns |
|
| Signature | plugins.core.toolbox.manager.init() -> nothing |
|---|---|
| Type | Function |
| Description | Initialises the preferences panel. |
| Parameters |
|
| Returns |
|
| Signature | plugins.core.toolbox.manager.injectScript(script) -> none |
|---|---|
| Type | Function |
| Description | Injects JavaScript into the Preferences Webview. |
| Parameters |
|
| Returns |
|
| Signature | plugins.core.toolbox.manager.maxPanelHeight() -> number |
|---|---|
| Type | Function |
| Description | Returns the maximum size defined by a panel. |
| Parameters |
|
| Returns |
|
| Signature | plugins.core.toolbox.manager.new() -> none |
|---|---|
| Type | Function |
| Description | Creates a new Preferences Window. |
| Parameters |
|
| Returns |
|
| Signature | plugins.core.toolbox.manager.refresh() -> none |
|---|---|
| Type | Function |
| Description | Refreshes the Preferences Window. |
| Parameters |
|
| Returns |
|
| Signature | plugins.core.toolbox.manager.selectPanel(id) -> none |
|---|---|
| Type | Function |
| Description | Selects a Preferences Panel. |
| Parameters |
|
| Returns |
|
| Signature | plugins.core.toolbox.manager.setPanelRenderer(renderer) -> none |
|---|---|
| Type | Function |
| Description | Sets a Panel Renderer |
| Parameters |
|
| Returns |
|
| Signature | plugins.core.toolbox.manager.show() -> boolean |
|---|---|
| Type | Function |
| Description | Shows the Preferences Window |
| Parameters |
|
| Returns |
|