Change Buttons Collection text?

Change Buttons Collection text?

PatricioFinkPatricioFink Posts: 27Questions: 12Answers: 0
buttons: [
                { extend: "remove", editor: editor, text: "Borrar Stock" },
                {
                    extend: 'collection',
                    text: 'Exportar Lista De Stock (Imprimir, Excel, Pdf...)',
                    buttons: [
                        'copy',
                        'excel',
                        'csv',
                        'pdf',
                        'print'
                    ]
                }
                
            ]

In a button colletion like that, how to do change the of the buttons?

Like 'Copy' to 'Copiar'
'Print' to 'Imprimir'

Thnaks!

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,643Questions: 1Answers: 10,492 Site admin
    Answer ✓

    You can use the buttons.copy option in the language object as documented in the copy reference (likewise for the other button types).

    Or extend the button like you have with the others: { extend: 'copy', text: 'Copiar' } etc.

    Allan

This discussion has been closed.