leantony / laravel-grid

A grid view for laravel, inspired by the yii2 grid widget
https://leantony.github.io/laravel-grid/
MIT License
91 stars 39 forks source link

Enhancement - Externalize modal JS #93

Open Nuranto opened 5 years ago

Nuranto commented 5 years ago

Would be great to externalize the modal JS from the grid js. For example, on a comments grid, we may want to add a row button "Reject", with a modal asking for a reason of rejection. If we have a separate edit/view page of the comment, we would want the button reject to be there too, with the same modal.

We could also want this modal system on other pages, totally unrelated to any grids... Of course, we could make another modal system, but it would be redundant, right ?