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

ons-navigator is overriding user-costumized behaviour of left button #28

Closed
JoaoSaleiro opened this issue Feb 8, 2014 · 1 comment
Closed

Comments

@JoaoSaleiro
Copy link

I have a simple ons-navigator that looks like this:

<ons-navigator
        left-button-icon="fa fa-bars"
        right-button-icon="fa fa-lg fa-plus"
        title="{{title}}"
        on-right-button-click="rightClick()"
        on-left-button-click="leftClick()"
        page="page1.html">
  </ons-navigator>

rightClick() is a call to:

 $scope.ons.navigator.pushPage('page2.html')

leftClick() does:

  console.log('I was clicked');

Both page1.html and page2.html do not have an ons-navigator-toolbar set - they are only empty ons-pages.

If I click the right-button to go to page1, rightClick() is called and page1 shows. But if then I click on the left-button, leftClick() is NOT called, and the default onsenui action is performed.

@anatoo
Copy link
Contributor

anatoo commented Sep 29, 2014

Implemented on v1.1.0. Closing.

@anatoo anatoo closed this as completed Sep 29, 2014
@lock lock bot added the outdated label May 18, 2018
@lock lock bot locked as resolved and limited conversation to collaborators May 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants