Questions tagged [visibility]
Visibility is an attribute of an object. It may refer to the concept of having something visible (or not) on the graphical interface, or a symbol visibility in linkage. This tag should not be used in place of the more specific tags [memory-visibility] or [class-visibility].
visibility
3,192
questions
8693
votes
67
answers
3.2m
views
How do I check if an element is hidden in jQuery?
How do I toggle the visibility of an element using .hide(), .show(), or .toggle()?
How do I test if an element is visible or hidden?
1394
votes
21
answers
759k
views
What is the difference between visibility:hidden and display:none?
The CSS rules visibility:hidden and display:none both result in the element not being visible. Are these synonyms?
560
votes
45
answers
312k
views
How to check visibility of software keyboard in Android?
I need to do a very simple thing - find out if the software keyboard is shown. Is this possible in Android?
399
votes
6
answers
660k
views
Equivalent of jQuery .hide() to set visibility: hidden
In jQuery, there are .hide() and .show() methods which sets the CSS display: none setting.
Is there an equivalent function which would set the visibility: hidden setting?
I know I can use .css() ...
327
votes
4
answers
164k
views
Difference between Visibility.Collapsed and Visibility.Hidden
What are differences between Visibility.Collapsed and Visibility.Hidden in WPF?
192
votes
12
answers
197k
views
DataTrigger where value is NOT null?
I know that I can make a setter that checks to see if a value is NULL and do something. Example:
<TextBlock>
<TextBlock.Style>
<Style>
<Style.Triggers>
<...
171
votes
18
answers
124k
views
How do I invert BooleanToVisibilityConverter?
I'm using a BooleanToVisibilityConverter in WPF to bind the Visibility property of a control to a Boolean. This works fine, but I'd like one of the controls to hide if the boolean is true, and show if ...
162
votes
3
answers
56k
views
What is the difference between the hidden attribute (HTML5) and the display:none rule (CSS)?
HTML5 has a new global attribute, hidden, which can be used to hide content.
<article hidden>
<h2>Article #1</h2>
<p>Lorem ipsum ...</p>
</article>
CSS has ...
145
votes
9
answers
618k
views
How to make a DIV visible and invisible with JavaScript?
Can you do something like
function showDiv()
{
[DIV].visible = true;
//or something
}
142
votes
4
answers
53k
views
Hide/show element with a boolean
I tend to have a lot of these in my code
if(shouldElementBeVisible)
$element.show()
else
$element.hide()
Is there any more elegant way packaged with javascript, jquery, or underscore? ...
135
votes
6
answers
38k
views
Default visibility of class methods in PHP
I looked at the manual, but I can't seem to find the answer.
What is the default visibility in PHP for methods without a visibility declaration? Does PHP have a package visibility like in Java?
...
132
votes
15
answers
139k
views
How do I check if an element is really visible with JavaScript? [duplicate]
In JavaScript, how would you check if an element is actually visible?
I don't just mean checking the visibility and display attributes. I mean, checking that the element is not
visibility: hidden or ...
119
votes
8
answers
115k
views
Animate visibility modes, GONE and VISIBLE
So im trying to animate when i set the visibility of a linearlayout with other widgets, from GONE to VISIBLE and the opposite.Im using togglebuttons to show and hide. Here's an image to show what i ...
119
votes
5
answers
40k
views
Package protected alternative in Kotlin
In Java, we have the package protected (default) modifier for classes, which allows us to have many classes in a single package but exposes only a few and keeps the logic encapsulated.
With Kotlin ...
107
votes
4
answers
74k
views
Private constructor in Kotlin
In Java it's possible to hide a class' main constructor by making it private and then accessing it via a public static method inside that class:
public final class Foo {
/* Public static method */...