PrestaShop / PrestaShop

PrestaShop is the universal open-source software platform to build your e-commerce solution.
https://www.prestashop-project.org/
Other
8.21k stars 4.81k forks source link

Implement Grid for JavaScript #16688

Open jolelievre opened 4 years ago

jolelievre commented 4 years ago

Is your feature request related to a problem? Please describe. As discussed in this PR https://github.com/PrestaShop/PrestaShop/pull/16150 It would be nice to have a Grid javascript implementation, the PHP Grid component was designed to be language agnostic and is generic enough to be used as a base input for a javascript implementation.

Describe the solution you'd like Today we have a twig display of the grids, we would need something similar in Javascript. Either in vanilla javascript or maybe in Vue.js, but if we use Vue we must keep in mind that there may be multiple grids in the same page, and they may be included/inserted in different part of the pages (because each module has its own, or in complex pages like Order view where multiple grids are present). Anyway the idea would be to use the PHP definition and export it as a javascript array (today it's more or less what happens with the GridPresenter that export array data used in twig). The js component is then able to display a grid with all its data, row actions, bulk actions, pagination, ...)

Additional context This is a basic issue to describe the need, but it requires more details for the final solution.

Progi1984 commented 4 years ago

A first implementation could be the block "Orders > Product" in the backoffice.

khouloudbelguith commented 4 years ago

Ping @PrestaShop/prestashop-core-developers

NeOMakinG commented 4 years ago

Would love to work on this when I'll have free time if it hasn't been done yet

matks commented 4 years ago

Would love to work on this when I'll have free time if it hasn't been done yet

It has not been done yet indeed.