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

Attach menu onto some other parent than body #84

Open
gitarmartin opened this issue Mar 18, 2022 · 1 comment
Open

Attach menu onto some other parent than body #84

gitarmartin opened this issue Mar 18, 2022 · 1 comment

Comments

@gitarmartin
Copy link

gitarmartin commented Mar 18, 2022

Hi!

I understand that the menu HC Off-canvas Nav is designed to attach to body, but in our use case, we have a chatbot tray where we want to nest this menu.

  1. How to attach onto some parent other than body?

  2. Additionally, it would need to display permanently, not hide as it is part of the tray. Permanent displaying would probably be usefull in general. Disable close buttons and actions (key presses etc.).

  3. And also disable the overlay (unsure if this is needed with 1 but definitely with 2).

Our plan to use it to serve context specific user instructions.

What would you recommend? Thanks.

@somewebmedia
Copy link
Owner

I think attaching it to any element could be implemented, but I'll have to play around with it to see if that would break something.

And for everything else you asked these settings would do the work:

expanded: true,
closeOnClick: false,
closeOnEsc: false,
disableBody: false

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

2 participants