开发者

Treepanel masking

How can i mask tre开发者_如何学JAVAe panel until loader loads data from server??(At Initial loading)


The very simplest thing to do is to call setVisible(false) on the TreePanel when you first create it and make it visible in your RPC callback.

A more visually elegant approach would be to use setEnabled(false) combined with a CSS style that changes the widget to a more neutral appearance to indicate that "there will be data here, but you can't use it yet". You could do this by setting the background to a light grey color, or perhaps turning down the opacity of the panel.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜