tismaximo/ag-grid-row-model
Composer 安装命令:
composer require tismaximo/ag-grid-row-model
包简介
Symfony implementation of the server side ag grid row model
README 文档
README
This bundle implements the server side row model logic in accordance to the Ag Grid documentation, exposing a single service that takes care of retrieving the rows automatically requested by Ag Grid, and returning a Response object with the expected format.
Usage
Install the dependency with:
composer require tismaximo/ag-grid-row-model
Then, in your controller, create a new endpoint like so to use the implementation:
use AgGridRowModelBundle\Api\AgGridRowModelService ... #[Route(path: '/ag-grid-rows', name: 'example_ag_grid_rows', methods: ['POST'])] public function rows(Request $request, ExampleRepository $repository, AgGridRowModelService $service) {/*{{{*/ $qb = $repository->getCustomQueryBuilder(); // or null to get all fields return $service->generateResponse($request, $repository, $qb); }/*}}}*/
Service contract:
public function generateResponse(Request $request, EntityRepository $repository, QueryBuilder|null $qb): Response
统计信息
- 总下载量: 30
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 9
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2026-02-11