Export functionality for custom view

Hello all,

I have created a custom view (which loads list of the data). I want to implement the export functionality for this data.

Any Suggestions.