on_show_option_menu


Description:

[ CCode ( cname = "show-option-menu" ) ]
[ Version ( since = "2.18" ) ]
public signal bool on_show_option_menu (OptionMenu menu, Event event, Rectangle rectangle)

This signal is emitted when a select element in web_view needs to display a dropdown menu.

This signal can be used to show a custom menu, using menu to get the details of all items that should be displayed. The area of the element in the WebView is given as rectangle parameter, it can be used to position the menu. If this was triggered by a user interaction, like a mouse click, event parameter provides the Event. To handle this signal asynchronously you should keep a ref of the menu.

The default signal handler will pop up a Menu.

Parameters:

menu

the OptionMenu

event

the Event that triggered the menu, or null

rectangle

the option element area

Returns:

true to stop other handlers from being invoked for the event. false to propagate the event further.




2022 vala-language.org