diff --git a/examples/simple.php b/examples/simple.php
index 6834ab7..e447842 100644
--- a/examples/simple.php
+++ b/examples/simple.php
@@ -9,7 +9,7 @@ $table = new ListJsonTable($json);
$table->setBeforePrintCell(function ($key, $data) {
return $key == "email" ? "$data" : $data;
});
-$table->afterPrint(function () {
+$table->afterPrint(function ($meta) {
return "
After Print
";
});
$table->create();
diff --git a/src/ListJsonTable.php b/src/ListJsonTable.php
index 6139f90..2102b5c 100644
--- a/src/ListJsonTable.php
+++ b/src/ListJsonTable.php
@@ -42,7 +42,7 @@ class ListJsonTable
{
$paramsStr = $this->createParams($this->data['meta']['params']);
$hookBefore = $this->beforePrintHook;
- $this->html .= $hookBefore();
+ $this->html .= $hookBefore($this->data['meta']);
$this->html .= "";
}
@@ -192,7 +192,7 @@ class ListJsonTable
{
$this->html .= "
";
$hookAfter = $this->afterPrintHook;
- $this->html .= $hookAfter();
+ $this->html .= $hookAfter($this->data['meta']);
}
public function render(): void