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

Get ref to the menu #918

Closed
allusernamestakenexceptthis opened this issue Jun 21, 2024 · 0 comments
Closed

Get ref to the menu #918

allusernamestakenexceptthis opened this issue Jun 21, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@allusernamestakenexceptthis
Copy link
Contributor

Is your feature request related to a problem? Please describe.

I want to set the menu to transport-center if there is enough space to show the whole menu below input.

Describe the solution you'd like

would be nice to get a ref to the menu itself to get its size rather than use element query.
for example

const menuRef = datepicker.menuRef()

then I could use vueuse

const { height } = useElementBounding(menuRef)

and do wonders with it

Describe alternatives you've considered

use native query selector to get the dpmenu wrapper and check. not elegant. I checked documentation for ways to wrap the menu itself to set a ref, but no dice. another way to set ref on action buttons . not elegant too

@allusernamestakenexceptthis allusernamestakenexceptthis added awaiting triage The issue is not reviewed by the maintainers enhancement New feature or request labels Jun 21, 2024
@Jasenkoo Jasenkoo removed the awaiting triage The issue is not reviewed by the maintainers label Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants