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

Feature request: Expose open and close functions #61

Open
alexisjamet opened this issue Mar 24, 2022 · 2 comments
Open

Feature request: Expose open and close functions #61

alexisjamet opened this issue Mar 24, 2022 · 2 comments

Comments

@alexisjamet
Copy link

It should be very useful to use defineExpose in order to expose the close and open functions.

Then we could be able to open or close a popper from somewhere else in the page, something like:

## script
const foo = ref()
const openFoo = () => foo.value?.open()

## Template
<Popper ref="foo">blablabla</Popper>

<button @click="openFoo">I can open the popper Foo</button>
@bahung1221
Copy link

+1 same here

@luizhenriquerdias
Copy link

#75

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