КОНТРОЛЫ/responsive_toggler.md
Исходный код
Twig код
{% set responsive_class_name = class_name %}
{% if not expand_icon %}
{% set expand_icon = 'arrow-down-expand' %}
{% endif %}
{% if not contract_icon %}
{% set contract_icon = contract_icon or 'arrow-up-contract' %}
{% endif %}
{% if items|length > 0 %}
{% set item_list = items %}
{% endif %}
<div class="responsive_toggler {{responsive_toggler_modify}}">
{% include "interface/controls/toggler.twig" with {
class_name: responsive_class_name ~ ' funnel',
items: item_list,
item_class_name: item_class_name
} %}
</div>
{% if expandable %}
<span class="control-toggler__button{% if button_class_name %} {{button_class_name}}{% endif %}" name="" title="{{items[0].name}}" style="display: none;">
<span class="control-toggler__button-name">{{items[0].name}}</span>
<span class="icon icon-{{expand_icon}}"></span>
<span class="icon icon-{{contract_icon}}"></span>
{% if not no_arrow %}<b></b>{% endif %}
</span>
{% endif %}
Ссылка на вики репозиторий
- Страницы
- add_button
- budget
- button
- cancel_button
- chained_list
- checkbox
- checkboxes_dropdown
- checkboxes_dropdown_single
- checkboxes_string
- color_picker
- contenteditable
- date_field
- date_filter
- date_time_field
- deadline_select
- delete_button
- drive_field
- feed_note_main_buttons
- file
- input
- legal_entity
- line_toggler
- multiselect
- payer
- phone
- pipeline_toggler
- radio
- responsive_toggler
- select
- select_with_subtext
- smart_address
- status_chat
- suggest
- supplier
- switcher
- tags
- textarea
- textarea_code
- time
- time_field
- toggler
- updater
- users
- wysiwyg
Ссылка на вики репозиторий
- add_button
- budget
- button
- cancel_button
- chained_list
- checkbox
- checkboxes_dropdown
- checkboxes_dropdown_single
- checkboxes_string
- color_picker
- contenteditable
- date_field
- date_filter
- date_time_field
- deadline_select
- delete_button
- drive_field
- feed_note_main_buttons
- file
- input
- legal_entity
- line_toggler
- multiselect
- payer
- phone
- pipeline_toggler
- radio
- responsive_toggler
- select
- select_with_subtext
- smart_address
- status_chat
- suggest
- supplier
- switcher
- tags
- textarea
- textarea_code
- time
- time_field
- toggler
- updater
- users
- wysiwyg