{% macro menu( class=false, container_class="luci-container--light", trigger={ type: "button", props: { text: "Button Trigger", class: "luci-button--secondary", icon_right: "expand" } }, custom_trigger=false, body_padding=true, action_button_text=false, icon_name="more" ) %}
{% endmacro %} {% macro menu_trigger_element( trigger={ type: "button", props: { text: "Button Trigger", class: "luci-button--secondary", icon_right: "expand" } } ) %} {% set trigger_element %} {{ getContext(trigger.type)( text=trigger.props.text, class=trigger.props.class + ' luci-menu__trigger', icon_left= trigger.props.icon_left, icon_right= trigger.props.icon_right, custom_attr_array=[ { name: 'aria-expanded', value: 'false' }, { name: 'aria-haspopup', value: 'true' } ] ) }} {% endset %} {% if trigger.button_group.props %} {% else %} {{ trigger_element | safe }} {% endif %} {% endmacro %}