Gtk.Expander.prototype.set_expanded

function set_expanded(expanded:Boolean):void {
    // Gjs wrapper for gtk_expander_set_expanded()
}

Sets the state of the expander. Set to true, if you want the child widget to be revealed, and false if you want the child widget to be hidden.

Since 2.4

expanded

whether the child widget is revealed