Gio.MenuModel.prototype.iterate_item_attributes

function iterate_item_attributes(item_index: Number(gint)): Gio.MenuAttributeIter {
    // Gjs wrapper for g_menu_model_iterate_item_attributes()
}
  

Creates a Gio.MenuAttributeIter to iterate over the attributes of the item at position item_index in model.

You must free the iterator with GObject.Object.prototype.unref when you are done.

Since 2.32

item_index

the index of the item

Returns

a new Gio.MenuAttributeIter