Export Form button

Juste change $GRID_ITEM_ID$

<script src="/media/com_projid/resources/js/jquery.min.js"></script>
<div id="my_button"><i class=" fas fa-download"></i> Extraire les données</div>


jQuery(document).ready(function() {
     setTimeout(function() {
     jQuery('#my_button').on('click', function(){
         var form =jQuery('.ii-grid-item-$GRID_ITEM_ID$',window.parent.document)[0];//.click();
         form.querySelector('.btn-export-import').click();
         setTimeout(function() {
            console.log(form.querySelector('.menu-more-options div:first-child').click());
         },200);
     });
     },1000);
});

#my_button {
    background-color: #8795A1;
    border: 1px solid rgb(241, 231, 231);
    border-radius: 999px;
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
    color:white;
    vertical-align: baseline;
    line-height: 38px;
    font-size: .75rem;
    cursor: pointer;
}

.fa-download:before {
    padding-left: 30px !important;
}

body { margin-top:0px;}