Skip to content

Egor00f/Drop-Down-List

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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