Handy.ExpanderRow
Description: Reference for Handy.ExpanderRow

### Class

# HandyExpanderRow

#### Description [src]

    class Handy.ExpanderRow : Handy.PreferencesRow {
      parent_instance: HdyPreferencesRow
    }

A `GtkListBoxRow` used to reveal widgets.

The `HdyExpanderRow` widget allows the user to reveal or hide widgets below it. It also allows the user to enable the expansion of the row, allowing to disable all that the row contains.

## HdyExpanderRow as GtkBuildable

The `HdyExpanderRow` implementation of the `GtkBuildable` interface supports adding a child as an action widget by specifying “action” as the “type” attribute of a element.

It also supports adding it as a prefix widget by specifying “prefix” as the “type” attribute of a element.

## CSS nodes

`HdyExpanderRow` has a main CSS node with name `row`, and the `.expander` style class. It has the `.empty` style class when it contains no children.

It contains the subnodes `row.header` for its main embedded row, `list.nested` for the list it can expand, and `image.expander-row-arrow` for its arrow.

When expanded, `HdyExpanderRow` will add the `.checked-expander-row-previous-sibling` style class to its previous sibling, and remove it when retracted.

Available since: | 1.0

#### Ancestors

- HdyPreferencesRow
- GtkListBoxRow
- GtkBin
- GtkContainer
- GtkWidget
- GInitiallyUnowned
- GObject

#### Implements

- AtkImplementorIface
- GtkActionable
- GtkBuildable

#### Constructors

###### hdy_expander_row_new

Creates a new `HdyExpanderRow`.

Available since: 1.0

#### Instance methods

###### hdy_expander_row_add_action

Adds an action widget to `self`.

Available since: 1.0

###### hdy_expander_row_add_prefix

Adds a prefix widget to `self`.

Available since: 1.0

###### hdy_expander_row_get_enable_expansion

Gets whether the expansion of `self` is enabled.

Available since: 1.0

###### hdy_expander_row_get_expanded

No description available.

###### hdy_expander_row_get_icon_name

Gets the icon name for `self`.

Available since: 1.0

###### hdy_expander_row_get_show_enable_switch

Gets whether the switch enabling the expansion of `self` is visible.

Available since: 1.0

###### hdy_expander_row_get_subtitle

Gets the subtitle for `self`.

Available since: 1.0

###### hdy_expander_row_get_use_underline

Gets whether an embedded underline in the title or subtitle labels indicates a mnemonic.

Available since: 1.0

###### hdy_expander_row_set_enable_expansion

Sets whether the expansion of `self` is enabled.

Available since: 1.0

###### hdy_expander_row_set_expanded

No description available.

###### hdy_expander_row_set_icon_name

Sets the icon name for `self`.

Available since: 1.0

###### hdy_expander_row_set_show_enable_switch

Sets whether the switch enabling the expansion of `self` is visible.

Available since: 1.0

###### hdy_expander_row_set_subtitle

Sets the subtitle for `self`.

Available since: 1.0

###### hdy_expander_row_set_use_underline

Sets whether an embedded underline in the title or subtitle labels indicates a mnemonic.

Available since: 1.0

##### Methods inherited from HdyPreferencesRow (4)

###### hdy_preferences_row_get_title

Gets the title of the preference represented by `self`.

Available since: 1.0

###### hdy_preferences_row_get_use_underline

Gets whether an embedded underline in the title indicates a mnemonic.

Available since: 1.0

###### hdy_preferences_row_set_title

Sets the title of the preference represented by `self`.

Available since: 1.0

###### hdy_preferences_row_set_use_underline

Sets whether an embedded underline in the title indicates a mnemonic.

Available since: 1.0

#### Properties

###### Handy.ExpanderRow:enable-expansion

Whether expansion is enabled.

Available since: 1.0

###### Handy.ExpanderRow:expanded

Whether the row is expanded.

Available since: 1.0

###### Handy.ExpanderRow:icon-name

The icon name for this row.

Available since: 1.0

###### Handy.ExpanderRow:show-enable-switch

Whether the switch enabling the expansion is visible.

Available since: 1.0

###### Handy.ExpanderRow:subtitle

The subtitle for this row.

Available since: 1.0

###### Handy.ExpanderRow:use-underline

Whether an embedded underline in the title or subtitle labels indicates a mnemonic.

Available since: 1.0

##### Properties inherited from HdyPreferencesRow (2)

###### Handy.PreferencesRow:title

The title of the preference represented by this row.

Available since: 1.0

###### Handy.PreferencesRow:use-underline

Whether an embedded underline in the title indicates a mnemonic.

Available since: 1.0

#### Class structure

    struct HandyExpanderRowClass {
      HdyPreferencesRowClass parent_class;

    }

###### Class members

`parent_class` |
    HdyPreferencesRowClass
| The parent class.