run_color_chooser


Description:

[ Version ( since = "2.8" ) ]
public virtual signal bool run_color_chooser (ColorChooserRequest request)

This signal is emitted when the user interacts with a <input type='color' /> HTML element, requesting from WebKit to show a dialog to select a color.

To let the application know the details of the color chooser, as well as to allow the client application to either cancel the request or perform an actual color selection, the signal will pass an instance of the ColorChooserRequest in the request argument.

It is possible to handle this request asynchronously by increasing the reference count of the request.

The default signal handler will asynchronously run a regular ColorChooser for the user to interact with.

Parameters:

request

a ColorChooserRequest

Returns:

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




2022 vala-language.org