Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
7832 Widoki

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

Awatar
Odrzuć
Najlepsza odpowiedź

Hi,

Try this,

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


Thanks

Awatar
Odrzuć

Works well in 12.0

Najlepsza odpowiedź

works well on v15 too

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
maj 21
3458
2
maj 20
10174
1
sty 20
5395
0
mar 19
3676
0
paź 18
6543