There must be a simple way, but I can't seem to find it. After calling formItem.hide() or show(), what attribute can I check on the FormItem to know if it is currently shown or hidden?
Announcement
Collapse
No announcement yet.
X
-
There's intended to be an API isVisible() but we've just noticed a build problem which is trimming it off. You can use getAttributeAsBoolean("visible"), but note that like the similar Canvas API, it indicates visibility settings only and so will return true for an item that is not drawn.
---
Update: formItem.isVisible() will be present in nightly builds going forward. Again - this refers to the logical visibility of the item - if the item is not drawn but is not marked as hidden, isVisible() will still return true.Last edited by Isomorphic; 7 Sep 2011, 10:54.
Comment
Comment