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

How do I execute the show method from code #43

Closed
jcifuentes91 opened this issue Jul 4, 2018 · 1 comment
Closed

How do I execute the show method from code #43

jcifuentes91 opened this issue Jul 4, 2018 · 1 comment

Comments

@jcifuentes91
Copy link

jcifuentes91 commented Jul 4, 2018

This is more a question, rather than a bug, I would like to trigger the show event, I tried this
<popper trigger="click" :options="{placement: 'bottom'}" ref="searchpop" >... </popper> and on the parent
this.$refs.searchpop.doShow(); and nothing happens. Also tried this.$refs.searchpop.$emit("show");

@RobinCK
Copy link
Owner

RobinCK commented Jul 6, 2018

You need
force-show prop

<popper trigger="click" :force-show="true" >... </popper>
// or

<popper trigger="click" :force-show="yourShowState" >... </popper>
<button @click="yourShowState = !yourShowState">show/hide</button>

@RobinCK RobinCK closed this as completed Jul 12, 2018
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