This commit is contained in:
NoryiE
2025-03-03 16:39:00 +00:00
parent 0d5942eeef
commit 31ea7f9d05
3 changed files with 41 additions and 0 deletions

View File

@@ -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()

View File

@@ -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