Gtk.Assistant
const Gtk = imports.gi.Gtk; let assistant = new Gtk.Assistant();
A Gtk.Assistant is a widget used to represent a generally complex operation splitted in several steps, guiding the user through its pages and controlling the page flow to collect the necessary data.
The design of GtkAssistant is that it controls what buttons to show and to make sensitive, based on what it knows about the page sequence and the <link linkend="GtkAssistantPageType">type</link> of each page, in addition to state information like the page <link linkend="gtk-assistant-set-page-complete">completion</link> and <link linkend="gtk-assistant-commit">committed</link> status.
If you have a case that doesn't quite fit in #GtkAssistants way of handling buttons, you can use the #GTK_ASSISTANT_PAGE_CUSTOM page type and handle buttons yourself.
<refsect2 id="GtkAssistant-BUILDER-UI"> <title>GtkAssistant as GtkBuildable</title> <para> The GtkAssistant implementation of the GtkBuildable interface exposes the @action_area as internal children with the name "action_area".
To add pages to an assistant in GtkBuilder, simply add it as a <child> to the GtkAssistant object, and set its child properties as necessary. </para> </refsect2>
Hierarchy
-
GObject.Object
-
GObject.InitiallyUnowned
-
Gtk.Widget
-
Gtk.Container
-
Gtk.Bin
-
Gtk.Window
- Gtk.Assistant
-
-
-
-
-
Methods
- Gtk.Assistant.prototype.add_action_widget
- Gtk.Assistant.prototype.append_page
- Gtk.Assistant.prototype.commit
- Gtk.Assistant.prototype.get_current_page
- Gtk.Assistant.prototype.get_n_pages
- Gtk.Assistant.prototype.get_nth_page
- Gtk.Assistant.prototype.get_page_complete
- Gtk.Assistant.prototype.get_page_header_image
- Gtk.Assistant.prototype.get_page_side_image
- Gtk.Assistant.prototype.get_page_title
- Gtk.Assistant.prototype.get_page_type
- Gtk.Assistant.prototype.insert_page
- Gtk.Assistant.prototype.next_page
- Gtk.Assistant.prototype.prepend_page
- Gtk.Assistant.prototype.previous_page
- Gtk.Assistant.prototype.remove_action_widget
- Gtk.Assistant.prototype.remove_page
- Gtk.Assistant.prototype.set_current_page
- Gtk.Assistant.prototype.set_forward_page_func
- Gtk.Assistant.prototype.set_page_complete
- Gtk.Assistant.prototype.set_page_header_image
- Gtk.Assistant.prototype.set_page_side_image
- Gtk.Assistant.prototype.set_page_title
- Gtk.Assistant.prototype.set_page_type
- Gtk.Assistant.prototype.update_buttons_state