on 03-18-2008 1:52 PM
Hi, I have made a "LinkToAction", once clicked "TransparenContainer appears". Works as intended. Now, what can I do to make that "TransparentContainer" dissapear when I click on the Link second time? Regards, Balmer
Hi,
create a context attribute of type boolean
Create another context attribute of type visibility
and bind this to the visible property of the transparent controller.
and do the following in the init
wdContext.currentContextElement().setTransVisibility(WDVisibility.VISIBLE);
//Initially setting to true
//this attribute is used to store the state
wdContext.currentContextElement().setState(true);
in the action Hander of linkto action do as follows
//Check for the state
if(wdContext.currentContextElement().getState())
{
wdContext.currentContextElement().setState(false);
wdContext.currentContextElement().setTransVisibility(WDVisibility.NONE);
}
else
{
wdContext.currentContextElement().setState(true);
wdContext.currentContextElement().setTransVisibility(WDVisibility.VISIBLE);
}
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.