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

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        1d 23h 30m 1 Sandro Martini 27/Apr/11 10:21
        Sandro Martini made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Not A Problem [ 8 ]
        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.
        Sandro Martini made changes -
        Assignee Greg Brown [ gbrown ]
        Fix Version/s 2.0.1 [ 12315951 ]
        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) ?
        Greg Brown made changes -
        Field Original Value New Value
        Fix Version/s 2.0.1 [ 12315951 ]
        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.
        Daniel Kuschny created issue -

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development