to composer
This commit is contained in:
15
examples/simple.json
Normal file
15
examples/simple.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"meta": {
|
||||
"title": "forma 1",
|
||||
"columns": {
|
||||
"email": "Email",
|
||||
"description": "Описание 1",
|
||||
"description2": "Описание 2"
|
||||
},
|
||||
"params": {"class": "table table-bordered", "border": "1"}
|
||||
},
|
||||
"data": [
|
||||
{"email":"fas@mail.ru","description":"fafdgdfs","description2":"ffdghdas"},
|
||||
|
||||
]
|
||||
}
|
11
examples/simple.php
Normal file
11
examples/simple.php
Normal file
@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
require_once "../vendor/autoload.php";
|
||||
|
||||
use Itguild\Tables\ListJsonTable;
|
||||
|
||||
$json = file_get_contents('simple.json');
|
||||
|
||||
$table = new ListJsonTable($json);
|
||||
$table->create();
|
||||
$table->render();
|
Reference in New Issue
Block a user