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

auto option for backLabel #25

Open
wbyoko opened this issue Jul 6, 2012 · 0 comments
Open

auto option for backLabel #25

wbyoko opened this issue Jul 6, 2012 · 0 comments

Comments

@wbyoko
Copy link

wbyoko commented Jul 6, 2012

I added this in some code i'm writing, so i wouldn't have to pass around escaped titles throughout the application.

This is just a suggestion.

in ViewNavigator.prototype.replaceView
...
if (viewDescriptor.backLabel == 'auto') {
viewDescriptor.backLabel = this.history.length > 0 ? this.history[this.history.length-1].backLabel : null;
}
this.history.push...

in ViewNavigator.prototype.pushView
...
if (viewDescriptor.backLabel == 'auto') {
viewDescriptor.backLabel = this.history.length > 0 ? this.history[this.history.length-1].title : null;
}
this.history.push...

Thanks for app-ui.

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