Hi, I was wondering if its possible to hide the Ion-tabs
and Ion-toolbar
on a button click.
async toggleFullScreen() {
const loading = await this.loadingCtrl.create({
message: "",
spinner: "lines",
duration: 2000
});
await loading.present();
const style = document.getElementById("full").style;
await this.platform.ready();
const [ data, color] = this.fullscreen === "all" ?
["true", "on", "#f2af46"] :
["false", "off", "transparent"];
//TODO write code that hides toolbar and tabs
//
//
//
loading.dismiss();
localStorage.setItem("Fullbutton", this.fullscreen = data);
style.backgroundColor = color;
}
I’d like to run a function like this on a button click, I’ve seen a few posts but they all seem to be about hiding the toolbar/tabs on ngViewDidEnter
(Example)
I’d like to keep the tabs and toolbar until the button was clicked.
Any help or resources that could help with my issue would be greatly appreciated!