Gtk.TreeSelection.prototype.set_mode

function set_mode(type:Gtk.SelectionMode):void {
    // Gjs wrapper for gtk_tree_selection_set_mode()
}

Sets the selection mode of the selection. If the previous type was #GTK_SELECTION_MULTIPLE, then the anchor is kept selected, if it was previously selected.

type

The selection mode