[
https://issues.apache.org/jira/browse/WICKET-4745?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13454618#comment-13454618
]
Andreas Pieber commented on WICKET-4745:
----------------------------------------
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.
> Allow to set initial state of DebugBar to expanded / collapsed
> --------------------------------------------------------------
>
> Key: WICKET-4745
> URL: https://issues.apache.org/jira/browse/WICKET-4745
> Project: Wicket
> Issue Type: Improvement
> Components: wicket-devutils
> Affects Versions: 1.5.8, 6.0.0
> Environment: Wicket 1.5
> Reporter: Markus Krischke
> Assignee: Peter Ertl
> Priority: Minor
> Fix For: 6.0.1, 1.5.9
>
>
> 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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira