Control filter visibility

Hi, anyone knows how to control this filter visibility?
image

Here is the API reference.