Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to create menu #37

Open
islamjaidul opened this issue Sep 18, 2018 · 4 comments
Open

How to create menu #37

islamjaidul opened this issue Sep 18, 2018 · 4 comments

Comments

@islamjaidul
Copy link

I would like to create a menu exm - File, Edit, View. Are there any option. Are there any page option where I can go one page to another

@mimecorg
Copy link
Owner

It is possible to create a menu using built-in libui classes - UiMenu and UiMenuItem. They are currently undocumented, but you can use the UiMenu.cc file for reference. After creating the menus, create a window with the "menu" attribute.

Vuido doesn't have a concept of pages, but you can dynamically switch the content of the window, for example using the built-in <component> element which works the same as in Vue.js.

@parro-it
Copy link

You can find some documentation on the menu API here:
https://github.com/parro-it/libui-napi/blob/master/docs/menu.md

@islamjaidul
Copy link
Author

It is possible to create a menu using built-in libui classes - UiMenu and UiMenuItem. They are currently undocumented, but you can use the UiMenu.cc file for reference. After creating the menus, create a window with the "menu" attribute.

Vuido doesn't have a concept of pages, but you can dynamically switch the content of the window, for example using the built-in <component> element which works the same as in Vue.js.

Could you please give me an example how may I implement that

@parro-it
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants