#plugins.core.watchfolders.manager.panel

Watch Folder Panel Manager.


#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

Signatureplugins.core.watchfolders.manager.panel.new(params, manager) -> panel object
TypeConstructor
DescriptionConstructs a new panel with the specified priority and ID.
Parameters
  • params - Table of parameters
  • manager - The manager
Returns
  • A panel object
NotesNone
ExamplesNone
Sourcesrc/plugins/core/watchfolders/manager/panel.lua line 27

#Methods

Signatureplugins.core.watchfolders.manager.panel:addButton(priority, params) -> panel
TypeMethod
DescriptionAdds a button to the panel with the specified priority and params.
Parameters
  • priority - The priority number for the button.
  • params - The set of parameters for the button.
Returns
  • The panel.
NotesNone
ExamplesNone
Sourcesrc/plugins/core/watchfolders/manager/panel.lua line 312

Signatureplugins.core.watchfolders.manager.panel:addCheckbox(priority, params) -> panel
TypeMethod
DescriptionAdds a checkbox to the panel with the specified priority and params.
Parameters
  • priority - The priority number for the checkbox.
  • params - The set of parameters for the checkbox.
Returns
  • The panel.
Notes
  • The params can contain the following fields:
  • ** id - (optional) The unique ID. If none is provided, one will be generated.
  • ** name - (optional) The name of the checkbox field.
  • ** label - (optional) The text label to display after the checkbox.
  • ** onchange - (optional) a function that will get called when the checkbox value changes. It will be passed two parameters, id and params, the latter of which is a table containing the value and checked values of the checkbox.
  • ** class - (optional) the CSS class list to apply to the checkbox.
ExamplesNone
Sourcesrc/plugins/core/watchfolders/manager/panel.lua line 201

Signatureplugins.core.watchfolders.manager.panel:addContent(priority, content[, escaped]) -> panel
TypeMethod
DescriptionAdds the specified content to the panel, with the specified priority order.
Parameters
  • priority - the priority order of the content.
  • content - a value that can be converted to a string.
  • escaped - if true, the content will be escaped.
Returns
  • The panel object
NotesNone
ExamplesNone
Sourcesrc/plugins/core/watchfolders/manager/panel.lua line 112

Signatureplugins.core.watchfolders.manager.panel:addHandler(event, id, handlerFn, keys) -> none
TypeMethod
DescriptionAdds a handler
Parameters
  • event - The JavaScript event as string
  • id - The ID as string
  • handlerFn - The handler function
  • keys - Table of keys
Returns
  • The panel object
NotesNone
ExamplesNone
Sourcesrc/plugins/core/watchfolders/manager/panel.lua line 133

Signatureplugins.core.watchfolders.manager.panel:addHeading(priority, text, level) -> panel
TypeMethod
DescriptionAdds a heading to the panel with the specified priority and text.
Parameters
  • priority - The priority number for the heading.
  • text - The content of the heading as a string.
  • level - The level of the heading.
Returns
  • The panel object
NotesNone
ExamplesNone
Sourcesrc/plugins/core/watchfolders/manager/panel.lua line 240

Signatureplugins.core.watchfolders.manager.panel:addParagraph(priority, content[, escaped[, class]]) -> panel
TypeMethod
DescriptionAdds a paragraph to the panel with the specified priority and content.
Parameters
  • priority - The priority number for the paragraph.
  • content - The content you want to include as a string.
  • escaped - Whether or not the HTML is escaped as a boolean.
  • class - The class name as a string.
Returns
  • The panel object
NotesNone
ExamplesNone
Sourcesrc/plugins/core/watchfolders/manager/panel.lua line 185

Signatureplugins.core.watchfolders.manager.panel:addPassword(priority, params) -> panel
TypeMethod
DescriptionAdds a password textbox to the panel with the specified priority and params.
Parameters
  • priority - The priority number for the password.
  • params - The set of parameters for the password.
Returns
  • The panel.
NotesNone
ExamplesNone
Sourcesrc/plugins/core/watchfolders/manager/panel.lua line 284

Signatureplugins.core.watchfolders.manager.panel:addSelect(priority, params) -> panel
TypeMethod
DescriptionAdds a select to the panel with the specified priority and params.
Parameters
  • priority - The priority number for the select.
  • params - The set of parameters for the select.
Returns
  • The panel.
NotesNone
ExamplesNone
Sourcesrc/plugins/core/watchfolders/manager/panel.lua line 334

Signatureplugins.core.watchfolders.manager.panel:addTextbox(priority, params) -> panel
TypeMethod
DescriptionAdds a textbox to the panel with the specified priority and params.
Parameters
  • priority - The priority number for the textbox.
  • params - The set of parameters for the textbox.
Returns
  • The panel.
NotesNone
ExamplesNone
Sourcesrc/plugins/core/watchfolders/manager/panel.lua line 255

Signatureplugins.core.watchfolders.manager.panel:generateContent() -> string
TypeMethod
DescriptionGets generated toolbar content
Parameters
  • None
Returns
  • A string of generated content
NotesNone
ExamplesNone
Sourcesrc/plugins/core/watchfolders/manager/panel.lua line 75

Signatureplugins.core.watchfolders.manager.panel:getToolbarItem() -> table
TypeMethod
DescriptionReturns a Toolbar Item
Parameters
  • None
Returns
  • Table of Toolbar Item Values
NotesNone
ExamplesNone
Sourcesrc/plugins/core/watchfolders/manager/panel.lua line 55