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

Clarify menu's root purpose #71

Open
slavkoja opened this issue Oct 15, 2019 · 1 comment
Open

Clarify menu's root purpose #71

slavkoja opened this issue Oct 15, 2019 · 1 comment

Comments

@slavkoja
Copy link

Please, can you describe purpose and usage of the menu's root (its path is dot)?

In basic example is root's menu item (index) defined by this:

@register_menu(app, '.', 'Home')

But this "Home" item is not returned by the children list, only other two items (from this example) are shown. (Python 3.7, win64, latest flask and flask-menu)

I looked in the code, but i was not able to find someting usefull, what i can use to get link to home created as in example. Of course, when i add some path to it, i can get it as other items. Please, is it possible to work with this root?

@slavkoja
Copy link
Author

OK, i got it by using text and url of current_menu. But, please add it into example for future...

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

1 participant