deploy: a3cc685620
This commit is contained in:
@@ -14,45 +14,14 @@ This is the dropdown class. It is a visual element that can show a list of selec
|
||||
|
||||
|Method|Returns|Description|
|
||||
|---|---|---|
|
||||
|[Dropdown.new](#Dropdown.new)|Dropdown|Creates a new Dropdown instance
|
||||
|
||||
|
||||
## Protected Functions
|
||||
|
||||
|Method|Returns|Description|
|
||||
|---|---|---|
|
||||
|[Dropdown:init](#Dropdown:init)|Dropdown|Initializes the Dropdown instance
|
||||
|[Dropdown:mouse_click](#Dropdown:mouse_click)|boolean|Handles mouse click events
|
||||
|[Dropdown:render](#Dropdown:render)|-|Renders the Dropdown
|
||||
|
||||
|
||||
## Dropdown.new()
|
||||
Creates a new Dropdown instance
|
||||
|
||||
### Returns
|
||||
* `Dropdown` `self` The newly created Dropdown instance
|
||||
|
||||
### Usage
|
||||
```lua
|
||||
local dropdown = Dropdown.new()
|
||||
```
|
||||
|
||||
## Dropdown:init(props, basalt)
|
||||
Initializes the Dropdown instance
|
||||
|
||||
### Parameters
|
||||
* `props` `table` The properties to initialize the element with
|
||||
* `basalt` `table` The basalt instance
|
||||
|
||||
### Returns
|
||||
* `Dropdown` `self` The initialized instance
|
||||
|
||||
## Dropdown:mouse_click(button, x, y)
|
||||
Handles mouse click events
|
||||
|
||||
### Parameters
|
||||
* `button` `number` The button that was clicked
|
||||
* `x` `number` The x position of the click
|
||||
* `y` `number` The y position of the click
|
||||
|
||||
### Returns
|
||||
* `boolean` `handled` Whether the event was handled
|
||||
|
||||
## Dropdown:render()
|
||||
Renders the Dropdown
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user