Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
7876 มุมมอง

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

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
Odoo11 help with js please แก้ไขแล้ว
1
พ.ค. 21
3523
2
พ.ค. 20
10205
1
ม.ค. 20
5422
0
มี.ค. 19
3703
0
ต.ค. 18
6574