is there a chance to show a table only when a Condition is true. For example: I have a table with a field "status". I want to show the table only when the status = 1. When Status = 0 the table should be invisible.
Unfortunately it is not possible to hide hole table but you can hide rows for that condition. You have to set if the column cell = 0 Set row CSS class and then make css class that hide the row. Also make one more conditional when value is 1 and make css class to show that row. In our documentation you can see how to make css class. There is shown for columns, but its the same for rows you have just to make css rule for row.
Hello again,
is there a chance to show a table only when a Condition is true. For example: I have a table with a field "status". I want to show the table only when the status = 1. When Status = 0 the table should be invisible.
Thanks in advance.
Christoph
Hi chrischi2407,
Thank you for your purchase.
Unfortunately it is not possible to hide hole table but you can hide rows for that condition. You have to set if the column cell = 0 Set row CSS class and then make css class that hide the row. Also make one more conditional when value is 1 and make css class to show that row. In our documentation you can see how to make css class. There is shown for columns, but its the same for rows you have just to make css rule for row.
Kind Regards,
Isidora Markovic
wpDataTables: FAQ | Facebook | Twitter | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Amelia demo sites | Docs
You can try our wpDataTables add-ons before purchase on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables