EditableCombobox - Garland-g/perl6-libui GitHub Wiki

EditableCombobox

Libui::EditableCombobox

A combobox that can be edited by the end user.

Methods

new()

Creates a new EditableCombobox.

append(Str:D $text)

Adds another row containing $text to the Combobox.

text() returns Str

Returns the currently selected text.

set-text(Str:D $text) or text(Str:D $text)

Sets the text field of the currently selected item to $text.

changed() returns Supply

Returns a Supply. An event is emitted whenever a new item is selected.