ReGui
  • Introduction
  • Getting Started
    • Installing
    • Creating windows
  • Plugins
    • Custom elements
    • Custom flags
    • Custom themes
  • Examples
    • Demo window
    • Example scripts
  • Methods
  • ReGui functions
  • Canvas functions
  • Configuration saving
  • Elements
    • :Label
    • :Error
    • Code Editor
    • :Button
    • :SmallButton
    • :RadioButton
    • :Image
    • :VideoPlayer
    • :Checkbox
    • :Radiobox
    • :Viewport
    • :Console
    • :Region
    • :List
    • :CollapsingHeader
    • :TreeNode
    • :Separator
    • :Indent
    • :BulletText
    • :Bullet
    • :Row
    • :SliderInt
    • :SliderFloat
    • :SliderEnum
    • :SliderColor3
    • :SliderCFrame
    • :SliderProgress
    • :DragInt
    • :DragFloat
    • :DragColor3
    • :DragCFrame
    • :InputText
    • :InputTextMultiline
    • :InputInt
    • :InputColor3
    • :InputCFrame
    • :ProgressBar
    • :Combo
    • :Keybind
    • :PlotHistogram
    • :Table
    • :TabSelector
    • :Window
    • :TabsWindow
    • :PopupModal
Powered by GitBook
On this page
  • Example usage:
  • Theme colors:
  1. Elements

:Combo

Previous:ProgressBarNext:Keybind

Last updated 2 months ago

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,
})

Theme colors:

Tag
Affects

FrameBg

Background color

FrameBgTransparency

Background transparency

Text

Text color

TextFont

Text font

TextSize

Text font size

ButtonsBg

Background color of arrow button