mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
aff4019cde
This commit cleans up linting issues and proposes a new implementation for the devtools custom context menus.
11 lines
426 B
XML
11 lines
426 B
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<templates xml:space="preserve">
|
|
<t t-name="devtools.ContextMenu">
|
|
<div class="custom-menu" t-ref="contextmenu">
|
|
<ul class="my-1">
|
|
<li t-foreach="props.items" t-as="item" t-key="item_index" t-if="item.show" t-esc="item.title" t-on-click.stop="() => this.onClickItem(item.action)" class="custom-menu-item py-1 px-4"/>
|
|
</ul>
|
|
</div>
|
|
</t>
|
|
</templates>
|