Skip to content

Deprecated since 7.2

This page documents the classic module layer (CBController and cbInit()). It still works in every 7.x release, but new code should use resources and pages.

Use instead: A page with <x-cb::stat> cards, or the index.before render hook.

How To Make A Simple Statistic At Top Of Grid Data ​

This simple statistic will shown at top of grid data

php
$this->index_statistic = array();
$this->index_statistic[] = ['label'=>'Total Data','count'=>DB::table('products')->count(),'icon'=>'fa fa-check','color'=>'success'];

What's Next ​

Table Of Contents ​

Released under the MIT License.