{% import 'apostrophe-ui:components/buttons.html' as buttons with context %} {% macro menuItem(content, options) -%}
  • {{ __(content.label | d('')) }}
  • {%- endmacro %} {% macro base(menu, type, options) -%} {%- if options.direction -%} {%- set direction = options.direction -%} {%- else -%} {%- set direction = 'up' -%} {%- endif -%}
    {%- if type == 'button' -%} {%- if options.buttonType -%} {{ buttons[options.buttonType](menu.label, apos.utils.merge({ action: 'dropdown-button-label' }, options) ) }} {%- else -%} {{ buttons.normal(menu.label, { action: 'dropdown-button-label' }) }} {%- endif -%} {%- elif type == 'admin' -%}
    {{ __(menu.label | d('')) }}
    {%- endif -%}
    {%- endmacro %}