StaticregisterRegister a plugin globally
The plugin to register
Registration options
Optionaloverwrite?: booleanIf true, overwrite existing plugin instead of throwing error
StaticunregisterStaticgetGet a registered plugin by name
Name of the plugin to retrieve
The plugin instance or undefined if not found
StaticlistStaticinstallInstall a plugin on a Sortable instance
The Sortable instance to install the plugin on
Name of the plugin to install
StaticuninstallUninstall a plugin from a Sortable instance
The Sortable instance to uninstall the plugin from
Name of the plugin to uninstall
true if plugin was found and uninstalled, false otherwise
StaticuninstallUninstall all plugins from a Sortable instance
The Sortable instance to clean up
StaticisCheck if a plugin is installed on an instance
The Sortable instance to check
Name of the plugin to check
true if plugin is installed, false otherwise
StaticgetGet all installed plugin names for an instance
The Sortable instance to check
Array of installed plugin names
StaticinstallInstall multiple plugins at once
The Sortable instance to install plugins on
Array of plugin names to install
StaticuninstallUninstall multiple plugins at once
The Sortable instance to uninstall plugins from
Array of plugin names to uninstall
Plugin system for managing Sortable plugins
Remarks
The PluginSystem manages the lifecycle of plugins, providing registration, installation, and cleanup functionality. It ensures plugins are properly installed and uninstalled from Sortable instances.
Example: Basic plugin registration
Public