I'm building snippet options, and I can't find anywhere how to activate a snippet option by default.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- 客户关系管理
- e-Commerce
- 会计
- 库存
- PoS
- 项目
- MRP
此问题已终结
1
回复
6439
查看
Ok, so it seems that to set a default snippet option, you have to let its `data-select_class` empty.
Here's an example:
<div data-selector="section" data-js="snippet_foobar">
<li class="dropdown-submenu">
<a href="#">Foobar</a>
<ul class="dropdown-menu">
<li data-select_class="opt-foo">
<a>Foo</a>
</li>
<li data-select_class="opt-bar">
<a>Bar</a>
</li>
<li data-select_class="">
<a>When visible</a>
</li>
</ul>
</li>
</div>| 相关帖文 | 回复 | 查看 | 活动 | |
|---|---|---|---|---|
|
|
1
12月 19
|
5540 | ||
|
|
1
5月 23
|
4723 | ||
|
|
1
6月 25
|
1711 | ||
|
|
0
9月 24
|
2539 | ||
|
|
1
3月 23
|
3242 |