Gio.MenuModel.prototype.get_n_items

function get_n_items(): Number(gint) {
    // Gjs wrapper for g_menu_model_get_n_items()
}
  

Query the number of items in model.

Since 2.32

Returns

the number of items