Apply stripeClasses only when data is available?
Apply stripeClasses only when data is available?
lerxst
Posts: 1Questions: 1Answers: 0
Is there an easy way to turn this off only when I've filtered my list down to no entries? In other words, I want the stripe classes when I'm showing data, but when there are no rows loaded, or no rows currently visible (because of a search filter), I don't want the messages to that effect having the stripeClasses applied to it.
This discussion has been closed.
Answers
https://datatables.net/reference/api/any()
That will work for Bootstrap styling (not sure if that is being used in this case or not), but not for DataTables styling.
I'm not clear on why having
stripeClasses
apply would be a problem when you have no records?Allan