Shehzadi khushi
Shehzadi khushi

Reputation: 315

Putting div content out of browser window in electron app

I just cloned electron quickstart app from github. I see that it creates a browser window inside which we can put all our html content.

mainWindow = new BrowserWindow({width: 800, height: 600})

Something like this which creates a browser kind of window.But I am trying to make an app similar to sticky note where I want my div to stick directly on to desktop without any browser window. Is it possible to do this with electron? If not what are the alternatives to make my app developed with angular to a desktop application. I am a newbie to all of this. Kindly help

Thanks in advance :-)

Upvotes: 1

Views: 2370

Answers (1)

Nino9612
Nino9612

Reputation: 958

Take a look at this: Electron Frameless Window

You can use it to "hide/disable" the window controls. You can also set the option "alwaysOnTop" in your browser window object so the application always stays on top of other applications. Search for the option on this page Electron API Browser Window

Upvotes: 3

Related Questions