akioma.WaitCursor

 It is a static class, used for waitCursor and progressState functionality. The class provides methods like showWaitCursor, hideWaitCursor, showProgressState, hideProgressState, setProgressStateForLinks, createLogger and others.


debugMode - can be set to true or false and it’s used for the log level and for showing/hiding the blur on window in the progressState. If debugMode is true, than log.level is debug, else log.level is warn. Default is false

hasActiveProgressState - this property returns true or false depending if the progressState is on or off. Default is false.

showWaitCursor() - method for showing the loading cursor in the panel. accepts as a parameter the dynObject. 

example :

akioma.invokeServerTask({ 
                name: 'Akioma.Swat.FilterBT',
                methodName: 'GetFilters', 
                paramObj: {
                    plcParameter: oData
                },
                showWaitCursor: true,
                uiContext: oSelf.dynObject
            })


    akioma.WaitCursor.showWaitCursor(opts.uiContext);



 


showProgressState() - method for showing the progressState which will block the user from clicking on buttons inside the window/container object and show/hide blur depending on the debugMode property.

example of waitCursor + progressState with blur(debugMode set to true)