Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple menus with push animation #114

Open
luxzeitlos opened this issue Aug 15, 2018 · 0 comments
Open

Multiple menus with push animation #114

luxzeitlos opened this issue Aug 15, 2018 · 0 comments

Comments

@luxzeitlos
Copy link

Is this possible?

I mean I can wrap two burger-menus. But is this a good idea? And is there a nicer solution?

{{#burger-menu
  animation='push'
  position='left'
  as |burger1|
}}
  {{#burger1.menu itemTagName="li" dismissOnItemClick=true as |menu|}}
      Left
  {{/burger1.menu}}

  {{#burger1.outlet}}
    {{#burger-menu
      animation='push'
      position='right'
      as |burger2|
    }}
      {{#burger2.menu itemTagName="li" dismissOnItemClick=true as |menu|}}
          Right
      {{/burger2.menu}}

      {{#burger2.outlet}}
        <a {{action burger1.state.actions.toggle}}>
          OPEN Left
        </a>
        <a {{action burger2.state.actions.toggle}}>
          OPEN Right
        </a>
      {{/burger2.outlet}}
    {{/burger-menu}}
  {{/burger1.outlet}}
{{/burger-menu}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant