Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
7850 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi,

Try this,

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


Thanks

Ảnh đại diện
Huỷ bỏ

Works well in 12.0

Câu trả lời hay nhất

works well on v15 too

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 5 21
3462
2
thg 5 20
10180
1
thg 1 20
5406
0
thg 3 19
3681
0
thg 10 18
6547