:Combo
type Combo = {
Label: string?,
Placeholder: string?,
Callback: ((Combo, Value: any) -> any)?,
Items: {[number?]: any}?,
GetItems: (() -> table)?
}
Example usage:
--// Array
:Combo({
Label = "Combo",
Selected = "AAAA",
Items = {
"AAAA",
"BBBB",
"CCCC"
}
})
--// Dict
:Combo({
Label = "Combo",
Selected = "Apple",
Items = {
Apple = "AAA",
Banana = "BBB",
Orange = "CCC",
},
})
--// Function
:Combo({
Label = "Combo",
Selected = "aaa",
GetItems = function()
return {
"aaa",
"bbb",
"ccc",
}
end,
})
Last updated