DetailTemplateShowIfFn
Function
Uses a predicate to control conditional rendering for the
DetailTemplateDirective.
Allows you to show or hide detail rows based on your logic. (See example).
TS
public myCondition(dataItem: any, index: number) { return dataItem.CategoryID % 2 === 0; }