Column visibility button

Column visibility button

motharmothar Posts: 6Questions: 2Answers: 0

Hi,
How i can rename the Column visibility button into custom text like (Manage Column)

Thanks

Answers

  • allanallan Posts: 61,972Questions: 1Answers: 10,160 Site admin

    Use the buttons.buttons.text option:

    new DataTable('#myTable', {
        layout: {
            topStart: {
                buttons: [
                    {
                        extend: 'colvis',
                        text: 'Manage Columns'
                    }
                ]
            }
        }
    });
    

    Allan

  • motharmothar Posts: 6Questions: 2Answers: 0

    Thanks

Sign In or Register to comment.