Please enable JavaScript to view this site.

Navigation: Advanced topics > Programming topics > Additional WHERE tabs API > Methods

Additional WHERE tabs API: setTabHideEmpty

Scroll Prev Next More

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

Event: After table initialized

About Additional WHERE tabs API

Created with Help+Manual 7 and styled with Premium Pack Version 3 © by EC Software