I want to block the UI and show the loading spinner (equivalent to "blockUI()") in an OWL Component. Please find code below:
XML:
JS:
/** @odoo-module **/
import { registry } from "@web/core/registry";
const { Component, useState} = owl;
export class OwlComponent1 extends Component {
setup() {
super.setup();
}
async showSpinner() {
// await blockui and show spinner
}
}
XML:
<button t-on-click="showSpinner">Button</button>