Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to hide hr if table filter is empty


I'm trying to hide a <hr/> rule inside a table filter when the table filter returns no values. 
Is there any way to achieve this? Screenshot_11.png

1 answer

Hi @sa_mejia ,

I can suggest wrapping your Table Filter macro into the Table Transformer macro:




So when you don't have any suitable rows to display, you'll get a blue info message that there are no any rows returned (not the empty table header row as you had before).

Thanks for your reply, 
I was thinking in something that allows me to hide some elements that are inside of this filter like the hr (horizontal rule) when there's a filter applied and there are no matches, probably via CSS.

something like .tablefilter:empty(){ hr class-name {display : none;}}

We often use CSS to hide specific items from the Table Filter menu. Here is an example of several expressions to hide the "Hide columns" option for the different variants of the macro usage.

What exactly do you need to do? Do you use a filtering panel and when there are no any results you want to hide it? So your colleagues won't see it and won't know about the applied filters?

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence

Confluence Mythbusters: Does Atlassian even use Confluence?

Hi, Confluence collaborators! As part of #Confluence-Collaboratory month, we’ve created a very special Mythsbusters segment, where we're dive into an interesting myth and uncover the truth behind i...

1,633 views 7 30
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you