Compare commits

...

2 Commits

Author SHA1 Message Date
5f46431d45 fix filter row 2024-10-11 16:31:11 +03:00
02a3e52b7d fix pagination 2024-09-24 15:42:55 +03:00

View File

@ -290,6 +290,9 @@ class ListJsonTable extends JasonTable
$this->html .= "<td></td>";
}
}
if ($this->showActionColumn) {
$this->html .= "<td></td>";
}
$this->html .= "</form></tr>";
}
@ -326,7 +329,7 @@ class ListJsonTable extends JasonTable
$hookAfter = $this->afterPrintHook;
$this->html .= $hookAfter($this->data['meta']);
if ($this->pagination) {
if ($this->pagination && $this->data['data']) {
$options = [
'countItem' => $this->data['meta']['total'],
'perPage' => $this->data['meta']['perPage'] ?? 10,