PDA

View Full Version : Lock setLoading() to panel? Add msg to mask()?



nothing
10 Jul 2013, 5:57 AM
I am trying to display a loading mask onto my panels.
Using view.setLoading() as well as view.mask() leads to problems:


setLoading() is not locked to the panel/view. If you drag the window/panel, the loading mask with message stays in the drag start and does not move with its window/panel. The loading message works perfectly setLoading( 'Waiting...' );
mask() locks to the panel/view (yea!), however it is not possible for me to add a loading message to it. Tried: .mask( 'Waiting...' ) and .mask( { msg: 'Waiting...' } ).

I would use any of the methods, if it can be locked to the view and display a message. How to do that?

nothing
10 Jul 2013, 6:17 AM
The solution is:

view.getEl().mask("Waiting...");