Empty table html attribute

Empty table html attribute

WarbounthoWarbountho Posts: 17Questions: 7Answers: 0

Hello,

Is it possible to use https://datatables.net/reference/option/language.emptyTable as html attribute?

I tried many combinaison but cannot get it working, data-emptytable, data-language--emptytable, etc...

Thanks!

This question has an accepted answers - jump to answer

Answers

  • kthorngrenkthorngren Posts: 21,443Questions: 26Answers: 4,974
    edited December 2023 Answer ✓

    Look at this example. Click the HTML tab to see the HTML5 data attributes used. Note the use of " to represent the " character.

    You will need to set the data-language attribute using the object structure shown in the language.emptyTable docs, for example:

    <table data-language="{&quot;emptyTable&quot;: &quot;No Records&quot;}">
    

    Running example:
    https://live.datatables.net/dobohabe/1/edit

    Kevin

  • WarbounthoWarbountho Posts: 17Questions: 7Answers: 0

    Thank you very much!

    Have a great New Year's Eve!

Sign In or Register to comment.