تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
5706 أدوات العرض

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
ديسمبر 19
4761
1
مايو 23
3968
1
يونيو 25
1000
0
سبتمبر 24
1543
1
مارس 23
2282