跳至內容
選單
此問題已被標幟
2 回覆
7875 瀏覽次數

Hi everyone,

I'm making a module that downloads a file , It has a button click method , then the spinner should be shown , then the methode calls an rpc call , when the  rpc call returns I need to close the spinner.I have tried appending spinner on different elements , but ended up having small spinners on corners or elements.

Please help me

頭像
捨棄
最佳答案

Hi,

Try this,

var framework = require('web.framework');
//To add spinner
framework.blockUI();
//To remove spinner
framework.unblockUI();


Thanks

頭像
捨棄

Works well in 12.0

最佳答案

works well on v15 too

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
5月 21
3509
2
5月 20
10204
1
1月 20
5421
0
3月 19
3701
0
10月 18
6570