Children Tabs

Expand width

The .expand() method will widen the children tabs at the bottom of your page by roundabout 12% to give you more space for data and less gaps.

Expanding the tabs’ width is part of the detail view’s .compact() method.

Syntax

new AppGiniDetailView().compact();

Automatically show badges

A beautiful feature known from other frameworks: Automatically count the number of items and display it in the tab-captions.

The badges will be update automatically if number of records changes.

Syntax

new AppGiniDetailView().ChildrenTabs().showBadges();

Troubleshooting

If this does not work by default, please check the following:

  1. Open language.php in your editor
  2. Find the line starting with $Translation['records x to y of z']
  3. Within your localized/translated string, check if <RecordCount> is the last variable.
  4. As long as the order of the variables <FirstRecord> , <LastRecord> and <RecordCount> are being kept in that order, .showBadges() should work out of the box. There is a regular expression which finds the last integer number.
  5. If this does not work with your translation, you can still pass a customized regular expression as parameter to .showBadges(my_custom_regex)-function.
Social media & sharing icons powered by UltimatelySocial