Skip to content

DatabaseOptionButton ​

Inherits: OptionButton

OptionButton that auto-populates from database and uses IDs in metadata

Variables ​

Stringdatabase""
boolinclude_nonetrue
Stringnone_text"(None)"
intcurrent_id0

Methods ​

voidsetup( p_database: String, p_initial_id: int = 0, p_options: Dictionary = {} )
intget_selected_id()
voidset_selected_id( id: int )

Signals ​

id_selected( id: int ) ​

Variable descriptions ​

String database = "" ​

No description yet.

bool include_none = true ​

No description yet.

String none_text = "(None)" ​

No description yet.

int current_id = 0 ​

No description yet.

Method descriptions ​

void setup( p_database: String, p_initial_id: int = 0, p_options: Dictionary = {} ) ​

No description yet.

int get_selected_id() ​

No description yet.

void set_selected_id( id: int ) ​

No description yet.