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?
kerberonix
Posts: 7Questions: 5Answers: 0
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
This discussion has been closed.
Answers
Hi @kerberonix ,
Yep, see example here.
Cheers,
Colin