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 ?
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 ?