WPEWebKit.OptionMenu
Description: Reference for WPEWebKit.OptionMenu

### Class

# WPEWebKitOptionMenu

since: 2.18

#### Description [src]

    class WPEWebKit.OptionMenu : GObject.Object
    {
      priv: WebKitOptionMenuPrivate*
    }

Represents the dropdown menu of a `select` element in a `WebKitWebView`.

When a select element in a `WebKitWebView` needs to display a dropdown menu, the signal `WebKitWebView::show-option-menu` is emitted, providing a WebKitOptionMenu with the `WebKitOptionMenuItem`s that should be displayed.

Available since: 2.18

#### Ancestors

- GObject

#### Instance methods

###### webkit_option_menu_activate_item

Activates the `WebKitOptionMenuItem` at `index` in `menu`.

since: 2.18

###### webkit_option_menu_close

Request to close a `WebKitOptionMenu`.

since: 2.18

###### webkit_option_menu_get_item

Returns the `WebKitOptionMenuItem` at `index` in `menu`.

since: 2.18

###### webkit_option_menu_get_n_items

Gets the length of the `menu`.

since: 2.18

###### webkit_option_menu_select_item

Selects the `WebKitOptionMenuItem` at `index` in `menu`.

since: 2.18

##### Methods inherited from GObject (43)

Please see GObject for a full list of methods.

#### Signals

###### WPEWebKit.OptionMenu::close

Emitted when closing a `WebKitOptionMenu` is requested. This can happen when the user explicitly calls `webkit_option_menu_close()` or when the element is detached from the current page.

since: 2.18

##### Signals inherited from GObject (1)

###### GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

since: 2.0

#### Class structure

    struct WPEWebKitOptionMenuClass {
      GObjectClass parent_class;
      void (* _webkit_reserved0) (
    void
      );
      void (* _webkit_reserved1) (
    void
      );
      void (* _webkit_reserved2) (
    void
      );
      void (* _webkit_reserved3) (
    void
      );

    }

No description available.

###### Class members

`parent_class: GObjectClass`
  No description available.
`_webkit_reserved0: void (* _webkit_reserved0) ( void )`
  No description available.
`_webkit_reserved1: void (* _webkit_reserved1) ( void )`
  No description available.
`_webkit_reserved2: void (* _webkit_reserved2) ( void )`
  No description available.
`_webkit_reserved3: void (* _webkit_reserved3) ( void )`
  No description available.