Add button/action in header
- Single Page
Posted 21 January 2013 - 11:08 AM
I would like to add couple of buttons to the header (where Add, Export to Excel, Print) buttons are.
Is there any way to do such thing?
Reasons for needing these buttons are:
1. Add a "Back" to X controller/action link
2. Add Export to PDF action (for whole grid, not for grid rows as add_action)
Is this possible? and if so, how can I achieve that?
Thanks for helping!
Posted 21 January 2013 - 12:40 PM
Add this code to your view:
<script type="text/javascript">
$(document).ready(function(){
$('.tDiv3').append('<a id="my_button" href="#">new button</a>');
});
</script>
Posted 22 January 2013 - 07:37 AM