Closable tabs


#1

I am building a desktop website using ionic 3 and angular.

My tabs are created dynamically and i need an option to be able to close (destroy) the tab. The question is how do i put a close icon in the tab header to call any action?

tabIcon does not seems to have a way to invoke a method etc. Please advise


#2

If your app is only desktop, try Electron.

https://github.com/electron/electron


#3

i already have written my website significantly using ionic so cannot go to electron now.


#4

@vikceo electron is based upon web technologies at every step, so there is no better way to write a desktop app than Electron if you already have a website, to my knowledge (it fully uses any web tech and can be compiled for Linux, OSX, Windows).


#5

i have definitely loved the idea of using electron but at this point for this project i cannot simply moveover. So, I am still looking for these simple issues in ionic itself.


#6

@vikceo i understand, sometimes the company or the rules are big, too big to move yet.


#7

nah not really. It just i have some upcoming demos with customers etc. So, I cannot move over within a week to a new framework. I have to keep it going and start that in parallel.


#8

nice to tell me, thx i appreciate