DataGrid action

  • Hi,

    Is there a way so that an action for a DataGrid can have a popup to enter some text before proceeding, like entering a product id?


  • Banned



    Currently, there ain't native way to do that but you can use blade render event to pass some javascript explicitly.
    With that javascript you need to inject your required things such as HTML also from script itself.

    Ways to pass JS:

    1. @push('scripts')
      //JS code

    2. Use listener to listen event "bagisto.admin.layout.body.after" for admin and "" for shop.
      Using these events you can pass any blade file with your script and html either or both.


Log in to reply