Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

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)


clearProgressStateGlobally() - method to clear progress state globally on all windows.

onErrorClearProgressState() - clear progressState globally in case of an client-side javascript error and log the errors on an debug level.

  • No labels