معرفی شرکت ها


django-html5accordion-0.1.8


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

JS support to expand/collapse content, like HTML5 details/summary elements
ویژگی مقدار
سیستم عامل -
نام فایل django-html5accordion-0.1.8
نام django-html5accordion
نسخه کتابخانه 0.1.8
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Jonny Gerig Meyer
ایمیل نویسنده jonny@oddbird.net
آدرس صفحه اصلی https://github.com/jgerigmeyer/django-html5accordion/
آدرس اینترنتی https://pypi.org/project/django-html5accordion/
مجوز UNKNOWN
jQuery html5accordion plugin package for Django =============================================== django-html5accordion adds JS support to expand/collapse any content, like HTML5 details/summary elements. It can be called on any element, and accepts options to set the selector for the ``summary`` contents that should always remain visible (and act as the link to expand/collapse the hidden content), the speed of the slideUp/Down animation, the class to be added when the ``details`` element is expanded, selectors for elements within ``summary`` that should not trigger the expand/collapse, and callback fns. Dependencies ------------ - `jQuery`_ library .. _jQuery: http://jquery.com/ Installation ------------ In your Django project settings, add "html5accordion" to your INSTALLED_APPS. Usage ----- Linking the JS:: <script src="{{ STATIC_URL }}html5accordion/jquery.html5accordion.js"></script> Sample HTML:: <article class="details"> <header class="summary"> <p>This content will always be visible</p> </header> <div> <p>This content will expand/collapse when `.summary` is clicked</p> </div> </article> Calling the plugin:: $('.details').html5accordion(); Calling the plugin with a variety of options explicitly configured to their default values:: $('.details').html5accordion({ summarySelector: '.summary', // Selector for summary text slideSpeed: 200, // Slide animation speed (ms) expandedClass: 'open', // Class added when details are // expanded ignoredElements: 'button, a, input, label', // Elements within `summary` that // will not trigger expand/collapse initialSlideSpeed: null, // Slide animation speed (ms) for // already-expanded details openCallback: null, // Callback fn after open animation closeCallback: null // Callback fn after close animation }); Note: To expand a ``details`` element on initial load, simply add class ``open`` (or whatever class is passed as option ``expandedClass``), or add attribute ``open``.


نحوه نصب


نصب پکیج whl django-html5accordion-0.1.8:

    pip install django-html5accordion-0.1.8.whl


نصب پکیج tar.gz django-html5accordion-0.1.8:

    pip install django-html5accordion-0.1.8.tar.gz