How to implement open in new tab in electron?


#1

Is there an code example for open in a new tab like chrome?


#2

There are no tabs built-in to Electron. You have to implement them yourself. Something like https://github.com/adamschwartz/chrome-tabs might help you get started.


#4

I put together an NPM module and enhanced Adam’s chrome tabs by adding a jQuery wrapper, tab views, events, an API, and documentation. See: https://jaswsinc.github.io/chrome-tabs/ and https://www.npmjs.com/package/x-chrome-tabs


#5

really nice work!


#6

Thank you very much :slight_smile: I hope it saves others some time.