update view json table
This commit is contained in:
27
examples/view.json
Normal file
27
examples/view.json
Normal file
@ -0,0 +1,27 @@
|
||||
{
|
||||
"meta": {
|
||||
"rows": {
|
||||
"username": "Логин",
|
||||
"email": "Email",
|
||||
"created_at": "Создан",
|
||||
"updated_at": "Обновлен"
|
||||
},
|
||||
"perPage": 10,
|
||||
"currentPage": 1,
|
||||
"baseUrl": "\/admin\/user",
|
||||
"actions": [],
|
||||
"params": {
|
||||
"class": "table table-bordered",
|
||||
"border": "2"
|
||||
}
|
||||
},
|
||||
"data": {
|
||||
"id": 1,
|
||||
"username": "rrr",
|
||||
"email": "rrr@mail.ru",
|
||||
"password_hash": "sdgh46eyrtghsdret",
|
||||
"role": 1,
|
||||
"created_at": "15.07.2024",
|
||||
"updated_at": null
|
||||
}
|
||||
}
|
11
examples/view.php
Normal file
11
examples/view.php
Normal file
@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
require_once "../vendor/autoload.php";
|
||||
|
||||
use Itguild\Tables\ViewJsonTable;
|
||||
|
||||
$json = file_get_contents('view.json');
|
||||
|
||||
$table = new ViewJsonTable($json);
|
||||
$table->create();
|
||||
$table->render();
|
Reference in New Issue
Block a user