Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    How to tell if FormItem is shown or hidden

    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?

    #2
    Any way to do this? Or do I need to attach another attribute to the item when I hide it so I can check it later?

    Comment


      #3
      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

      Working...
      X