Gtk.CellRendererCombo
const Gtk = imports.gi.Gtk;
let cell_renderer_combo = new Gtk.CellRendererCombo({
has_entry: value,
model: value,
text_column: value,
});
Gtk.CellRendererCombo renders text in a cell like Gtk.CellRendererText from which it is derived. But while Gtk.CellRendererText offers a simple entry to edit the text, Gtk.CellRendererCombo offers a Gtk.ComboBox widget to edit the text. The values to display in the combo box are taken from the tree model specified in the Gtk.model property.
The combo cell renderer takes care of adding a text cell renderer to the combo box and sets it to display the column specified by its Gtk.text-column property. Further properties of the combo box can be set in a handler for the Gtk.CellRenderer::editing-started signal.
The Gtk.CellRendererCombo cell renderer was added in GTK+ 2.6.
Hierarchy
-
GObject.Object
-
GObject.InitiallyUnowned
-
Gtk.CellRenderer
-
Gtk.CellRendererText
- Gtk.CellRendererCombo
-
-
-