Show/Hide LoadingBox for my custom ajax functionality in Sugar 7.6

Hello All,

Please see below screen shot, I want to show/hide dynamically Std Loading Box in Sugar 7.6
LoadingBox.png

Thanks,

Shyam

Parents
  • Hello Shyam,

    Try below code in your custom ajax call.

    success: function(data) {
        if(data){
            app.alert.show('message-id', {
                level: 'process',
                title: 'In Process...'
            });
        }
    },
    
    complete: function() {
      app.alert.dismiss('message-id');
    }
    
    
    

    Hope it will work.

    -BPATEL

Reply
  • Hello Shyam,

    Try below code in your custom ajax call.

    success: function(data) {
        if(data){
            app.alert.show('message-id', {
                level: 'process',
                title: 'In Process...'
            });
        }
    },
    
    complete: function() {
      app.alert.dismiss('message-id');
    }
    
    
    

    Hope it will work.

    -BPATEL

Children
No Data