开发者

Treepanel masking

开发者 https://www.devze.com 2023-02-09 05:47 出处:网络
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

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

精彩评论

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

关注公众号