cancel
Showing results for 
Search instead for 
Did you mean: 

WD Tray collapsed expanded

Former Member
0 Kudos

Hello all.

Some one know how the code to expand and collapse a tray in a web dynpro application via Button comand.

I have a button and when a user click in this button i need expand and collpase a tray.

Thanks in advance.

Taylor

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Bind the "expanded" property of the Tray to some boolean context attribute "trayExpanded" and toggle this attribute in the button's action handler:


void onActionToggleButtonPressed()
{
  wdContext.currentContextElement().setTrayExpanded( !wdContext.currentContextElement().getTrayExpanded() );
}

Armin

Former Member
0 Kudos

Hello Armin.

It`s work fine.

Thank`s for your help.

Points add.

Best Regards.

Taylor.

Answers (0)