Skip to content

Latest commit

 

History

History
54 lines (32 loc) · 1.03 KB

File metadata and controls

54 lines (32 loc) · 1.03 KB

UX GridJs

Symfony bundle to integrate Grid.js tables with Symfony 7.x/8.x using AssetMapper + Stimulus. Turbo Drive is optional.

Grid.js is MIT-licensed. See Credits section.

Requirements

  • PHP >= 8.2
  • Symfony 7.x/8.0
  • symfony/asset-mapper (AssetMapper / importmap)
  • symfony/stimulus-bundle (Stimulus)

Turbo Drive is optional

Installation

Install the bundle:

composer require alexain/ux-gridjs

Install Grid.js via importmap in the host Symfony app:

php bin/console importmap:require gridjs php bin/console importmap:install

importmap:require is the recommended way to add third-party JS packages with AssetMapper. Symfony

Register/use the Stimulus controller grid_controller.js shipped by this bundle.

Usage:

Twig rendering:

{{ gridjs_render(grid) }}

Where grid is the array produced by GridPresenter::toArray().

Backend-driven toolbar

Configure toolbar buttons from Symfony (no Twig overrides).

Credits & Licenses

Grid.js: MIT license

© 2025 - Alessandro Capano