getItemLink

open fun getItemLink(itemIndex: Int, link: String): MenuModel?

Queries the item at position @item_index in @model for the link specified by @link.

If the link exists, the linked #GMenuModel is returned. If the link does not exist, null is returned.

Return

the linked #GMenuModel, or null

Since

2.32

Parameters

itemIndex

the index of the item

link

the link to query