How to hide empty list view if you cant do it with a attribute in object above

0
Hi guys, As you may know, list view is giving ugly empty row (no resuls fount or something in it) if it has no results in it. I am wondering what you guys do to hide this row in a case where you can't solve it by (adding) a visibility attribute in the object above. In my case is the domain model: (Request) 1- N Offer__Request (Offer) & (Supplier)1- N Supplier__Offer (Offer) I thought to making a helper entity which holds a boolean true or false on basis of the supplier sent a offer to this request. Side-effect of this is each time a lot of unnecessary work.....do you have a simpler solution?
asked
2 answers
6

hiding the element isn't hard, its replacing it that proves a challange.

to hide the element add this to your sass:

.mx-listview > ul.mx-list.mx-list-striped.mx-listview-list > li.mx-listview-empty {
  display: none
}

 

answered
0

I did a work around with this, that text that says "No Items Found" has a class associated with it, I believe it is .mx-list-empty or something similar to this. I set the color of the text to transparent, so that "No Items Found" would not appear. it is just a workaround, but it works for me, hopefully it helps.

answered