• Resolved lipsum

    (@lipsum)


    Hi,

    I want to change the text of datatables buttons. Reading the doc I found a way to do that: https://datatables.net/reference/option/buttons.buttons.text

    But when I try to implement in the plugin in the “DataTables defaults object” settings, gives me an error (I don’t know which):

    
    {
        "dom": "B<'clear'>lfrtip",
        "buttons": [
            "colvis",
            { extend: "copy", text: "Copy to clipboard" },
            "csv",
            "excel",
            "pdf",
            "print"
        ]
    }
    

    Any suggestion?

    Thanks.

Viewing 1 replies (of 1 total)
  • Plugin Author Meitar

    (@meitar)

    gives me an error (I don’t know which)

    Your JSON is malformed. You need to double-quote extend and text, because JSON requires all string keys be double-quoted:

    { "extend": "copy", "text": "Copy to clipboard" },
    
Viewing 1 replies (of 1 total)
  • The topic ‘Customization of buttons text’ is closed to new replies.