跳至内容
菜单
此问题已终结
2 回复
7865 查看

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
3469
2
5月 20
10187
1
1月 20
5411
0
3月 19
3687
0
10月 18
6557