Dynamically add/remove the Seaside's toolbar on an application
I wanted to display or hide the tool bar on a Seaside application. It turned out to be pretty simple.
To remove it:
app configuration at: #rootDecorationClasses addAll: #() removeAll: (Array with: WAToolDecoration)
And to show it:
app configuration
at: #rootDecorationClasses
addAll: (Array with: WAToolDecoration)Another useful snippet to retrieve an application from its name:
WAAdmin defaultDispatcher handlerAt: 'wapict'
Seasiders won’t find this exciting but this post is more a reminder for myself than anything else. If I’m doing something overcomplicated for nothing, shout my ignorance in the comments ;)
Comments [0]