navigationbar - Steroids: NavigationBarButton displayed then vanished -
i'm new steroids , i'm trying display modal view button in native navigation bar (will use later side drawer).
note: use of modal view doesn't require override potential existing button on left side.
my view , content displayed nice navigationbarbutton "filtres". once view loaded navigation bar reloaded , navigation bar button disappears.
any idea why happens , how fix it?
here controller code:
angular .module('profile-list') .controller('indexcontroller', function($scope, supersonic) { var drawerbutton = new supersonic.ui.navigationbarbutton({ title: "filtres", ontap: function(){ supersonic.logger.debug("click"); } }); var navigationbaroptions = { buttons: { left: [drawerbutton] } }; supersonic.ui.navigationbar.update(navigationbaroptions); });
thanks
try wrapping navbar update this:
supersonic.ui.views.current.whenvisible( function(){ var drawerbutton = new supersonic.ui.navigationbarbutton({ title: "filtres", ontap: function(){ supersonic.logger.debug("click"); } }); var navigationbaroptions = { buttons: { left: [drawerbutton] } }; supersonic.ui.navigationbar.update(navigationbaroptions); });
also, can test button on right side instead in case overridebackbutton
somehow setting true.
Comments
Post a Comment