PHP code example of rampesna / jqx-server-side
1. Go to this page and download the library: Download rampesna/jqx-server-side library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
rampesna / jqx-server-side example snippets
use Rampesna\JqxGrid;
class ExampleController extends Controller
{
public function index(Request $request)
{
$tableName = 'your_table_name';
$columns = [
'id',
'name',
'surname',
// ...
];
$jqxGrid = new JqxGrid(
$tableName,
$columns,
$request
);
return response()->json($jqxGrid->initialize());
}
}