Class name for <ion-navbar>?


#1

anybody, anybody?

Know the class name for


#2

I don’t understand what you’re asking. You can assign a navbar any class that you want and then apply custom styles for that class.

What are you trying to do with a navbar?


#3

Thanks for Reply, it was a long day of me trying to get the Navbar and Tabs to hide when I hit print.

actually, I meant the class that ionic assigns to it

<ion-navbar class="toolbar toolbar-ios statusbar-padding">

So after a long period of time, with me trying to replace the DOM, I eventually found answer thru scss.

  @media print {
    ion-header {
      ion-navbar {
        visibility: hidden !important;
        display: none !important;
      }
    }

So that solved the ion-nav bar, now… to turn of tabs for this one page,

after several more hours of Learning, I found someone that had the answer i needed

import { App } from 'ionic-angular';

then

constructor(public navCtrl: NavController,
              public navParams: NavParams,
              private modalCtrl: ModalController,
              private app: App
              ) {
  }

then

this.app.getRootNav().push(DrugCardPricingPage,{...});

Nothing, like a “Challenge Accepted” to get the learning done.


#4

Nooo. their…

(getRootNav) is deprecated and will be 
removed in the next major release. Use getRootNavById instead.