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

Latest commit

 

History

History
74 lines (61 loc) · 5.74 KB

plugins.core.action.manager.md

File metadata and controls

74 lines (61 loc) · 5.74 KB

docs » plugins.core.action.manager


Action Manager Module.

API Overview

API Documentation

Constants

Signature plugins.core.action.manager.handlerIds <cp.prop: table of strings; read-only>
Type Constant
Description Returns a list of registered handler IDs.
Signature plugins.core.action.manager.handlers <cp.prop: table of handlers; read-only>
Type Constant
Description Provides access to the set of handlers registered with the manager. It

Functions

Signature plugins.core.action.manager.addHandler(id) -> handler
Type Function
Description Adds a new action handler with the specified unique ID and returns it for further configuration.
Parameters
  • id - The unique ID
  • group - The group the handler belongs to.
  • label - An optional label for the handler (over-riding a supplied i18n value)
Returns
  • The handler instance.
Signature plugins.core.action.manager.getActivator(id) -> activator
Type Function
Description Returns an activator with the specified ID. If it doesn't exist, it will be created.
Parameters
  • activatorId - The unique ID of the activator.
Returns
  • The activator with the specified ID.
Signature plugins.core.action.manager.getHandler(id) -> handler
Type Function
Description Returns an existing handler with the specified ID.
Parameters
  • id - The unique ID of the action handler.
Returns
  • The action handler, or nil
Signature plugins.core.action.manager.getURL(handlerId, action) -> string
Type Function
Description Gets a URL based on the Handler ID & Action Table.
Parameters
  • handlerId - The Handler ID
  • action The action table
Returns
  • A string
Signature plugins.core.action.manager.init() -> none
Type Function
Description Initialises the module.
Parameters
  • None
Returns
  • None