Skip to content

Cannot specify platform visibility on ActionBar items #361

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

Closed
arnaudvalle opened this issue Jul 21, 2016 · 2 comments
Closed

Cannot specify platform visibility on ActionBar items #361

arnaudvalle opened this issue Jul 21, 2016 · 2 comments
Assignees

Comments

@arnaudvalle
Copy link

arnaudvalle commented Jul 21, 2016

As per the documentation (http://docs.nativescript.org/angular/ui/action-bar.html#creating-slidedrawer-button), I use a NavigationButton and ActionItem to handle a sidedrawer menu button in both iOs and Android.

<ActionBar title="Hello">
    <NavigationButton icon="res://ic_menu" ios:visibility="collapse"></NavigationButton>
    <ActionItem icon="res://ic_menu" ios.position="left" android:visibility="collapse">
</ActionItem>

This used to work with nativescript-angular 0.1.6 and tns 2.0.0 but now breaks with my recent upgrade to tns 2.1.1 and nativescript-angular 0.2.0.

Now, both button just show up on Android.

Any idea if this is a bug or if there's a different / better way to do this now?

Thanks,

@NickIliev NickIliev self-assigned this Jul 22, 2016
@NickIliev
Copy link

NickIliev commented Jul 22, 2016

Hello @arnaudvalle

Indeed platform-specific tags and attributes do not produce the expected behaviour within ActionBar.
I am closing this issues as duplicate to #350 - please track its development and suggested solutions at the logged issue.

Closing as duplicate to #350

@arnaudvalle
Copy link
Author

Ok, will do. Thanks @NickIliev

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

2 participants