定制 tismaximo/ag-grid-row-model 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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
  • 点击次数: 14
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2026-02-11