跳至內容
選單
此問題已被標幟
1 回覆
5714 瀏覽次數

I'm building snippet options, and I can't find anywhere how to activate a snippet option by default.

頭像
捨棄
作者 最佳答案

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
4761
1
5月 23
3970
1
6月 25
1003
0
9月 24
1562
1
3月 23
2286