Gio.MenuModel.prototype.get_item_link
function get_item_link(item_index: Number(gint), link: String): Gio.MenuModel {
// Gjs wrapper for g_menu_model_get_item_link()
}
Queries the item at position item_index in model for the link specified by link.
If the link exists, the linked Gio.MenuModel is returned. If the link does not exist, null is returned.
Since 2.32
- item_index
the index of the item
- link
the link to query
- Returns
the linked Gio.MenuModel, or null