Skip to main content

Arguments

ImGuiWindow
required
ImGuiWindow object returned by imgui.create. A destroyed or invalid window raises a Lua error.
string
required
Input label string passed to the rendered ImGui InputText widget.
string
Initial text read with optional string handling. Pass nil here when you want the default empty string while still supplying onChange as argument 4.
function
required
Function stored for this input and invoked with the current string after an edit event is processed. It must be supplied as argument 4.

Returns

ImGuiWindow
The same ImGuiWindow object, allowing chained method calls.

Types

ImGuiWindow

Handle returned by imgui.create. Control-building methods return the same handle so calls can be chained.