Method FirstOrDefaultTab
FirstOrDefaultTab(Func<IMenuTabModel, bool>)
Returns the first menu tab model that satisfies the specified condition.
public IMenuTabModel FirstOrDefaultTab(Func<IMenuTabModel, bool> predicate)
Parameters
predicate
Func<IMenuTabModel, bool>The condition to satisfy.
Returns
- IMenuTabModel
The first menu tab model that satisfies the condition, or null if no such element is found.