asticode / go-astilectron

Build cross platform GUI apps with GO and HTML/JS/CSS (powered by Electron)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to solve pages more than one?

heliping opened this issue · comments

Dear all,
I use this tool for desk app, very uesful.
but the demo only has one page as the index.html. actually, the normal app used more than one.
I guess the way is use menu to route for different pages.
But how to do? any ways?

The simplest solution is to add a menu directly in your HTML/JS app.

Otherwise you can use a go-astilectron menu and use the OnClick attribute to send a message to your JS so that it changes page.

Is there any demo for this function?

I used it with vue, can package successful.
but when using sendmessage, vue report: "astilectron" not defined.