This is really great to know! Could you possibly give an example as to how the "c" namespace is declared to provide your own components? I would really like to do this but am not sure how to go about it. Thank you very much.
Regards, Joe On Feb 17, 10:56 am, Krzysztof Rosiński <[email protected]> wrote: > Thanks for the hint, it works as you said. > > On 17 Lut, 11:56, Thomas Broyer <[email protected]> wrote: > > > On Feb 16, 11:24 am, Krzysztof Rosiñski <[email protected]> wrote: > > > > Hi, > > > > is it possible to create custom panel like this: > > > ControlPanel.ui.xml > > > <g:HTMLPanel> > > > <g:VerticalPanel styleName='{html.panel}'> > > > <g:HorizontalPanel> > > > <g:Button ui:field='btnHide' > > > styleName='{button}' text='Hide'></ > > > g:Button> > > > <g:Button ui:field='btnClose' > > > styleName='{button}' text='Close'></ > > > g:Button> > > > </g:HorizontalPanel> > > > > <g:ScrollPanel ui:field="panel" width='100%'> > > > <!-- add components here --> > > > </g:ScrollPanel> > > > </g:VerticalPanel> > > > </g:HTMLPanel> > > > > and then use it in this way: > > > Something.ui.xml > > > <g:HTMLPanel> > > > <c:ControlPanel ui:field='panel'> > > > <g:FlexTable ui:field='ftLogs' > > > styleName='{table}'/> > > > </c:ControlPanel> > > > </g:HTMLPanel> > > > Yes (theoretically, I haven't tested). > > > Your ControlPanel has to implement HasWidgets (to probably delegate it > > to the ScrollPanel). > > > Just beware that in this case, the FlexTable's parent > > (ftLogs.getParent()) will be the ScrollPanel, not the ControlPanel. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
