Wicket
  1. Wicket
  2. WICKET-4745

Allow to set initial state of DebugBar to expanded / collapsed

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.5.8, 6.0.0
    • Fix Version/s: 6.1.0, 1.5.9
    • Component/s: wicket-devutils
    • Labels:
      None
    • Environment:
      Wicket 1.5

      Description

      The current implementation of DebugBar initially loads in expanded state and can be collapsed by clicking on it.

      If possible I would like to be able to set the initial state of the DebugBar from code.

      Right now I'm using

      @Override
      public void renderHead(final IHeaderResponse response)

      { super.renderHead(response); response.renderOnLoadJavaScript("wicketDebugBarCollapse();"); }

      as a workaround.

        Activity

        Hide
        Peter Ertl added a comment -

        fixed for next release of 1.5 and 6.0

        added additional constructor

        public DebugBar(final String id, boolean initiallyExpanded)

        to specify the initial state (expanded / collapsed) of the debug bar.

        Show
        Peter Ertl added a comment - fixed for next release of 1.5 and 6.0 added additional constructor public DebugBar(final String id, boolean initiallyExpanded) to specify the initial state (expanded / collapsed) of the debug bar.
        Hide
        Andreas Pieber added a comment -

        btw, a minor comment here: I think the fix version 6.0.1 is not correct. It should rather be 6.1.0 according to semver.org since it's a new feature/enhancement instead of a simple bug fix.

        Show
        Andreas Pieber added a comment - btw, a minor comment here: I think the fix version 6.0.1 is not correct. It should rather be 6.1.0 according to semver.org since it's a new feature/enhancement instead of a simple bug fix.
        Hide
        Peter Ertl added a comment -

        true

        I changed it.

        Show
        Peter Ertl added a comment - true I changed it.

          People

          • Assignee:
            Peter Ertl
            Reporter:
            Markus Krischke
          • Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development