Change Buttons Collection text?
Change Buttons Collection text?
 PatricioFink            
            
                Posts: 27Questions: 12Answers: 0
PatricioFink            
            
                Posts: 27Questions: 12Answers: 0            
            
            
                            
                                  in Buttons             
        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
This discussion has been closed.
            
Answers
You can use the
buttons.copyoption in thelanguageobject as documented in thecopyreference (likewise for the other button types).Or extend the button like you have with the others:
{ extend: 'copy', text: 'Copiar' }etc.Allan