Hello, I started using KoolReport recently. I have it set up but need to refine various things.
Is there a way to make Paging optional?
I have Paging working with
"paging"=>[
"pageSize"=>25
]
But if I try to pass this as a variable it does not work. Here is an example of that:
if($this->dataStore("report")->countData() > 25){
$paging['paging']=['pageSize'=>25];
}else{
$paging = [];
}
Table::create([
"dataStore"=>$this->dataStore("report"),
"class"=>[
"table"=>"table table-hover"
],
$paging
]);
Is there a way to make paging optional? Thanks