Interface

Gtk-4.0GtkSectionModelSignalSignatures

interface SignalSignatures {
    "items-changed": (
        position: number,
        removed: number,
        added: number,
    ) => void;
    "sections-changed": (position: number, n_items: number) => void;
}

Hierarchy (View Summary)

Index
"sections-changed": (position: number, n_items: number) => void

Emitted when the start-of-section state of some of the items in model changes.

Note that this signal does not specify the new section state of the items, they need to be queried manually. It is also not necessary for a model to change the section state of any of the items in the section model, though it would be rather useless to emit such a signal.

The Gio.ListModel::items-changed implies the effect of the Gtk.SectionModel::sections-changed signal for all the items it covers.

4.12

"items-changed": (position: number, removed: number, added: number) => void

This signal is emitted whenever items were added to or removed from list. At position, removed items were removed and added items were added in their place.

Note: If removed != added, the positions of all later items in the model change.

2.44