I am trying to create a custom datagrid extension that will allow a datagrid to be emailed/printed in PDF form. We have created the PDF functionality of this, however need to add buttons to datagrids when under the option ‘options’ in the yml file an option ‘print’ or ’email’ would equal true. On click would export the current state of the grid in PDF.
Currently we have a seperate twig file that we can send the grid name to, and which we use to generate the pdf. Is this the easiest way? Also what listeners do we need to configure in order to display our custom buttons beside the ‘Export Grid’ Button to the top left of the grid. Or is any of this possible without hacking core?
Thanks in advance,
You must be logged in to reply to this topic.