public static class DisclosurePanel extends Object
The header and content sections can be easily selected using css with a child
selector:
.gwt-DisclosurePanel-open .header { ... }
DisclosurePanel elements in
UiBinder
templates can
have one widget child and one of two types of header elements. A
<g:header> element can hold text (not html), or a <g:customHeader> element
can hold a widget. (Note that the tags of the header elements are not
capitalized. This is meant to signal that the header is not a runtime object,
and so cannot have a ui:field
attribute.)
For example:
<g:DisclosurePanel> <g:header>Text header</g:header> <g:Label>Widget body</g:Label> </g:DisclosurePanel> <g:DisclosurePanel> <g:customHeader> <g:Label>Widget header</g:Label> </g:customHeader> <g:Label>Widget body</g:Label> </g:DisclosurePanel>
Copyright © 2018. All rights reserved.