Wednesday, October 31, 2018

Re: StackPanel Toggle

Ok, I forgot about the StackPanel, which already does what you want, except you have to click on the header of each "stacked" panel, so I assume what you want is to click on the "body" of the panel (?) or add the ability to open multiple panels at the same time (?). I don't think StackPanel (or better, you should use StackLayoutPanel), support either of these two capabilities. To create that behavior, see if you can extend and overwrite the default behavior of StackPanel, otherwise, you might want to consider other widget libraries such as DominoUI which already has a Collapse component that supports multiple subpanels to be opened at the same time for example. I don't know of any widget that supports clicking anywhere to collapse/expand:

https://dominokit.github.io/domino-ui-demo/index.html?theme=indigo#components/collapse


On Tuesday, October 30, 2018 at 6:43:02 PM UTC-6, Hossein wrote:
@Rogelio,

Thanks for your response. Please see attached. How would I create that behavior myself? Any help would be appreciated.

Thanks

On Tuesday, October 30, 2018 at 7:13:51 PM UTC-4, Rogelio Flores wrote:
Of course you can always create that behavior yourself, or you could simply put your panel inside a DisclosurePanel:



On Monday, October 29, 2018 at 2:56:31 PM UTC-6, Hossein wrote:
Is it possible to toggle the StackPanel; i.e. clicking will open; and consecutive click will collapse.

Thanks,
Hossein.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment