How do you change the name of a postfix button in column visibility?

How do you change the name of a postfix button in column visibility?

kerberonixkerberonix Posts: 7Questions: 5Answers: 0
edited December 2018 in Free community support

say we have this which adds the restore button on to the end of the column visibility button list.

var table = $('#example').DataTable( {
    buttons: [
        {
            extend: 'colvis', 
            text: "Columns",
            postfixButtons: [ 'colvisRestore' ]
        }
    ]
} );

'text' allows you to change the text of the button itself. Is it possible to change the text of the 'colvisRestore' button? It's default text is 'Restore visibility'

This question has an accepted answers - jump to answer

Answers

This discussion has been closed.