
GnomeTools::Gtk::DropDown
Description
Dropdown class using the Gtk4 dropdown class. This module makes it a bit more easy to handle the Gtk4 class.
Css
There is only one css class defined. It is called `dropdown-tool`.
Example
my @items = <class role method sub submethod for else unit package module>;
my GnomeTools::Gtk::DropDown $dropdown .= new;
for @items -> $item {
$dropdown.append($item);
}Methods
new
Create a new dropdown object.
submethod BUILD ( )
select
Select an entry to be shown from the dropdown list.
method select ( Str:D $select-item )
$select-item; The item to be selected.
get-text
Get the text of the currently selected item.
method get-text ( --> Str )
About my projects, references, blog posts, examples and tutorials