Skip to content

Commit

Permalink
finished elements (i guess)
Browse files Browse the repository at this point in the history
  • Loading branch information
NoryiE committed Apr 3, 2024
1 parent 538784d commit b1dee42
Show file tree
Hide file tree
Showing 10 changed files with 252 additions and 972 deletions.
22 changes: 10 additions & 12 deletions docs/references/dropdown.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,25 @@
---
outline: deep
---

# Dropdown

Dropdowns are objects where the user can click on a button, which opens a list from which the user can choose an item.
Dropdowns are interactive elements that provide users with a selection of options. When activated, by clicking on a button, a list of items appears, allowing the user to choose one.

Dropdown inherit from [List](list), [VisualElement](visualelement) and [BasicElement](element)

## Properties

|Property|Type|Description|
|---|---|---|
|opened|bool|Indicates if the dropdown list is currently visible
|dropdownHeight|number|The maximum height of the dropdown list when opened
|dropdownWidth|number|The width of the dropdown list
|opened|bool|Indicates if the dropdown list is currently visible.
|dropdownHeight|number|The maximum height of the dropdown list when opened.
|dropdownWidth|number|The width of the dropdown list.

## Example

The following example demonstrates how to create a Dropdown object:

::: details Click to see example
```lua
local main = basalt.addFrame()
local myDropdown = main:addDropdown()
local dropdown = main:addDropdown()

-- Adding items to the dropdown
myDropdown:setItems({"Option 1", "Option 2", "Option 3"})
dropdown:setItems({"Option 1", "Option 2", "Option 3"})
```
:::
56 changes: 0 additions & 56 deletions docs/references/image.md

This file was deleted.

Loading

0 comments on commit b1dee42

Please sign in to comment.