• Resolved ldeschenes

    (@ldeschenes)


    Hi,

    The default behavior when there is no data to display is to show the header and a sentence “Aucune donnée disponible dans le tableau” (in french version).

    Is there a way in this case to show nothing (hide header and text) ?

    Thanks in advance!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author wpDataTables

    (@wpdatatables)

    Hi ldeschenes,

    Thank you for your interest in wpDataTables.

    Unfortunately, that is not possible with the built-in features of the plugin. It requires some custom code. Our plugin core functionality is based on the Datatable jQuery plugin(except the Simple table) and there are some examples on this link how you can achieve this.

    Best regards.

    Thread Starter ldeschenes

    (@ldeschenes)

    Hi,

    Thanks for the quick answer.

    Not sure what you means by “Simple table”. I am not using any Title, Sort, Filter, Search, etc. If that would be a “Simple table”, how could I do it (code snippet, css) ?

    Plugin Author wpDataTables

    (@wpdatatables)

    Hi ldeschenes,

    When you have this massage, we know that you create a table with the second option “Creating a table linked to an existing data source”,(see https://ibb.co/0BVS9Gd) because those messages for the empty table are only shown on tables based on datatables functionality like is explained above.

    Simple tables do not have that functionality and you can create it with the first option in the table wizard. More about this you can read in our docs about How to create a Simple table with wpDataTables

    So you can find a lot of code examples on the link above about this.

    Best regards.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Hide empty table’ is closed to new replies.