Skip to main content

EditorSproutyDialogsComboBox

Inherits: LineEdit

Description

Component that combines a text input with a dropdown list of selectable options. Users can either pick an item from the list or type a custom value directly.

Methods

Return TypeMethod
Stringget_value()
voidset_value(value: String)
Array[String]get_options()
voidset_options(options: Array)

Signals

signal option_selected(option: String)

Emitted when an option is selected from the dropdown list.


signal input_changed(text: String)

Emitted when the text in the input field changes.


signal input_submitted(text: String)

Emitted when the user submits the input.


signal input_focus_exited

Emitted when the input field loses focus.


Method Descriptions

func get_value() -> String

Returns the current text in the input field.


func set_value(value: String) -> void

Sets the text in the input field.


func get_options() -> Array[String]

Returns the current options for the dropdown list.


func set_options(options: Array) -> void

Set the options to show in the dropdown list.