import{_ as a,a as t,b as n,ag as l}from"./chunks/framework.BcrMLAmg.js";const c=JSON.parse('{"title":"ElementManager","description":"","frontmatter":{},"headers":[],"relativePath":"references/elementManager.md","filePath":"references/elementManager.md","lastUpdated":1757840145000}'),r={name:"references/elementManager.md"};function s(i,e,m,o,d,h){return n(),t("div",null,e[0]||(e[0]=[l('
This class manages elements and plugins. It loads elements and plugins from the elements and plugins directoriesand then applies the plugins to the elements. It also provides a way to get elements and APIs.
| Method | Returns | Description |
|---|---|---|
| ElementManager.loadElement | - | Loads an element by name. This will load the element and apply any plugins to it. |
| ElementManager.getElement | table | Gets an element by name. If the element is not loaded, it will try to load it first. |
| ElementManager.getElementList | table | Gets a list of all elements |
| ElementManager.getAPI | table | Gets an Plugin API by name |
Loads an element by name. This will load the element and apply any plugins to it.
name string The name of the element to loadElementManager.loadElement("Button")Gets an element by name. If the element is not loaded, it will try to load it first.
name string The name of the element to gettable Element The element classGets a list of all elements
table ElementList A list of all elementsGets an Plugin API by name
name string The name of the API to gettable API The API