The setTabShowCount method controls tab's "hide if empty" behavior. This method should be used in the After table initialized event only.
Syntax
WhereTabs::setTabHideEmpty($table, $id, $hideEmpty);
Arguments
$table
the name of the table name in which to modify the tabs. Use the $table variable provided in the After table initialized event.
$id
the ID of the tab.
$hideEmpty
if true - hide tab with no records, if false - always display the tab.
Return value
no return value
Example
Make tab with id "anton" auto-hide if it has no records:
WhereTabs::setTabHideEmpty($table, "anton", true);
See also:
•Additional WHERE tabs API: addTab
•Additional WHERE tabs API: deleteTab
•Additional WHERE tabs API: setTabTitle
•SQL query screen: Additional WHERE tabs