Adding more function to Modals

@chriddyp @Emmanuelle

I am relatively new to Dash. I would like to know if such a thing is possible.
I have a dcc.Modal element which opens on clicking the open button that i defined. From another callback output, a dcc.Checklist element in the modal gets populated with the names of list of plots generated. Upon selecting the required checklist items, there’s another button that says export in the modal footer. I want that button to be able to save the selected checklist items as a pdf or some format file.

I just want to know how can we add a function to a modal element footer button.

Any help is appreciated. Workaround without using modal is also fine.

Thanks in advance.