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

provide a non-changing category container div at renderCategory() #72

Open
haoliangyu opened this issue Oct 24, 2018 · 0 comments
Open

Comments

@haoliangyu
Copy link

In short, I am trying to implement a header and a footer in the menu:

-------------------------------
beautiful header
-------------------------------
[ item 1 ] <- highlight
item 2
item 3
-------------------------------
beautiful footer
-------------------------------

The renderCategory() seems to be a solution as it provides a div that I can modify. However, the item list is appended later and this makes it difficult to keep a footer child element at the end.

It would be good (to me) to append the ul element first beforehand. So when I receive the div from the renderCategory() function, the element layout is not changed by the library again and I can feel free to add child elements without worrying their order.

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