Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/egor00f/drop-down-list

drop-down list for roblox
https://github.com/egor00f/drop-down-list

roblox roblox-script roblox-ui

Last synced: about 1 month ago
JSON representation

drop-down list for roblox

Awesome Lists containing this project

README

        

# Drop-down List

just dropdown list

## usage:
```
local dropdownList = require(dropdownList)

function a()
return "Amogus"
end

local List = dropdownList.DropdownList:new(
{ -- List of Elemets
dropdownList.Element("One", a), -- Second arg is function (you can don't add)
dropdownList.Element("Two"),
dropdownList.Element("Three"),
dropdownList.Element("UwU"),
},
Frame, -- Frame that will be
3, -- Rows, default 4
"Dropdown List" -- Name of List
)

List:Handler()

List:Update(function(newVal:number)
print(newVal)
end)
```
Example of use in ReplicatedStorage