Pivot
  1. Pivot
  2. PIVOT-736

Visible Property for ComponentSkin

    Details

    • Type: New Feature New Feature
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Not a Problem
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0.1
    • Component/s: wtk, wtk-terra
    • Labels:
      None

      Description

      It would be great if you could set the global visibility for components using a specific styleName.
      An example usage would be for help boxes. If I apply the styleName "helpBox" to all BoxPanes which display some HelpText.

      Now I create a ToggleButton/Checkbox "Show/Hide HelpBoxes" setting the global visibility property of this StyleName. Now all BoxPanes using this StyleName get shown or hidden.

        Activity

        Hide
        Sandro Martini added a comment -

        As written in this thread, this i s not a problem, because:
        Visibility isn't a style, so it can't be specified via a named style.

        Show
        Sandro Martini added a comment - As written in this thread, this i s not a problem, because: Visibility isn't a style, so it can't be specified via a named style.
        Hide
        Greg Brown added a comment -

        Yeah, either one would be fine.

        Show
        Greg Brown added a comment - Yeah, either one would be fine.
        Hide
        Sandro Martini added a comment -

        Greg, this has to be closed as Won't Fix (or Not a Problem, or other similar) ?

        Show
        Sandro Martini added a comment - Greg, this has to be closed as Won't Fix (or Not a Problem, or other similar) ?
        Hide
        Greg Brown added a comment -

        Visibility isn't a style, so it can't be specified via a named style. Also, named styles are not dynamically updated - they are only applied at component creation time. So you wouldn't be able to do this with a style anyway.

        One way to handle this would be to set a name property on each "help box". Then you could iterate over the set of named components and set their "visible" flag as needed.

        Show
        Greg Brown added a comment - Visibility isn't a style, so it can't be specified via a named style. Also, named styles are not dynamically updated - they are only applied at component creation time. So you wouldn't be able to do this with a style anyway. One way to handle this would be to set a name property on each "help box". Then you could iterate over the set of named components and set their "visible" flag as needed.

          People

          • Assignee:
            Greg Brown
            Reporter:
            Daniel Kuschny
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development