jeudi 28 juillet 2016

Add Hidden column when exporting to CSV

This is my code : I am using bootstrap table in php laravel. Plz Help.I want to hide my column on website but when somebody export it to csv it should display

$matched.bootstrapTable({
    data: matchedData,
    height: getHeight(),
    exportTypes: ['csv', 'excel'],

    exportOptions:
    {
        fileName: '',
        ignoreColumn: [4,5,6],
        visible: [7,'true'],


    },
rowStyle: highlightExtraCommission,
columns: [
    /*{
     field: 'state',
     checkbox: true,
     rowspan: 2,
     align: 'center',
     valign: 'middle'
     },*/
    {
        title: 'Booking ID',
        field: 'booking id',
        align: 'center',
        valign: 'middle',
        sortable: true,
        formatter: bookingFormatter
    }, 
{
title: 'Accounting hidden information',
    align: 'center',
    valign: 'middle',
    formatter:showAccountingNotesFormatter,
    Visible: false

},



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2ad7R8u
via IFTTT

Aucun commentaire:

Enregistrer un commentaire