diff --git a/docs/references/elements/Graph.md b/docs/references/elements/Graph.md new file mode 100644 index 0000000..59cd7a2 --- /dev/null +++ b/docs/references/elements/Graph.md @@ -0,0 +1,24 @@ +# Graph : VisualElement + +## Functions + +|Method|Returns|Description| +|---|---|---| +|[Graph.new](#Graph.new)|-| +|[Graph:addPoint](#Graph:addPoint)|-| +|[Graph:init](#Graph:init)|-| +|[Graph:render](#Graph:render)|-| +|[Graph:setPoint](#Graph:setPoint)|-| + + +## Graph.new() + +## Graph:addPoint() + +## Graph:init() + +## Graph:render() + +## Graph:setPoint() + + diff --git a/docs/references/elements/List.md b/docs/references/elements/List.md index 82e18e5..2b9dc0c 100644 --- a/docs/references/elements/List.md +++ b/docs/references/elements/List.md @@ -25,6 +25,7 @@ custom item rendering, separators, and selection handling. |---|---|---| |[List:addItem](#List:addItem)|List|Adds an item to the list |[List:clear](#List:clear)|List|Clears all items from the list +|[List:getSelectedItem](#List:getSelectedItem)|table?|Gets first selected item |[List:getSelectedItems](#List:getSelectedItems)|table|Gets the currently selected items |[List:onSelect](#List:onSelect)|List|Registers a callback for the select event |[List:removeItem](#List:removeItem)|List|Removes an item from the list @@ -67,6 +68,12 @@ Clears all items from the list list:clear() ``` +## List:getSelectedItem() +Gets first selected item + +### Returns +* `table?` `selected` The first item + ## List:getSelectedItems() Gets the currently selected items diff --git a/docs/references/main.md b/docs/references/main.md index 159baa0..6522706 100644 --- a/docs/references/main.md +++ b/docs/references/main.md @@ -28,6 +28,7 @@ What this code does is it loads basalt into the project, and you can access it b |[basalt.create](#basalt.create)|table|Creates a new UI element |[basalt.createFrame](#basalt.createFrame)|table|Creates a new BaseFrame |[basalt.getAPI](#basalt.getAPI)|table|Returns a Plugin API +|[basalt.getElementClass](#basalt.getElementClass)|table|Returns an element class |[basalt.getElementManager](#basalt.getElementManager)|table|Returns the element manager |[basalt.getMainFrame](#basalt.getMainFrame)|BaseFrame|Gets or creates the main frame |[basalt.removeSchedule](#basalt.removeSchedule)|boolean|Removes a scheduled update @@ -73,6 +74,15 @@ Returns a Plugin API ### Returns * `table` `Plugin` The plugin API +## basalt.getElementClass(name) +Returns an element class + +### Parameters +* `name` `string` The name of the element + +### Returns +* `table` `Element` The element class + ## basalt.getElementManager() Returns the element manager instance