select_item


Description:

public void select_item (uint index)

Selects the OptionMenuItem at index in this.

Selecting an item changes the text shown by the combo button, but it doesn't change the value of the element. You need to explicitly activate the item with select_item or close the menu with webkit_option_menu_close in which case the currently selected item will be activated.

Parameters:

this

a OptionMenu

index

the index of the item




2022 vala-language.org