-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
(Question) How can i use modal? #63
Comments
It's not completely implemented yet, there seems to be a small bug. I was
hoping to put in a PR sooner than later
…On Fri, Jan 6, 2017, 3:44 PM Marcelo ***@***.***> wrote:
Hi, How can i use modal?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#63>, or mute the
thread
<https://github.com/notifications/unsubscribe-auth/ACgIntm_MFUFgbmBWb3nPRwkM6TLoCs_ks5rPtHPgaJpZM4LdOzC>
.
|
I got it to work using the following code: <template>
<div id="app">
<b-button @click="toggleModal">
Click Me!
</b-button>
<b-modal ref="modal">
<div slot="modal-body" class="modal-body">...</div>
</b-modal>
</div>
</template>
<script>
export default {
mounted() {
console.log('welcome!')
},
methods: {
toggleModal() {
this.$refs.modal.show();
}
}
}
</script> |
@jgog @ethanclevenger91 Thanks a lot! |
@ethanclevenger91 Hello Ethan, do you have any news on the modal implementation? I'm currently fiddling around a bit with Vue + Bootstrap and would like to use the Modal component. What I noticed, is that the CSS class "show" is not set. Instead, a CSS class "in" is set. Hope this helps. |
@ethanclevenger91 I've provided a PR #81 to address this issue. Please have a look. |
Switch CSS class 'in' for 'show', fixes #63
Got worked by changing modal's created method to:
and the emitter method of opener:
|
@mosinve Looks like a typo in the second bind line: ...hide()).bing(this) probably should be ...hide()).bind(this) |
Thanks @riker09 for mentioning that. I'm working on modal so it may be my mistake. It will be all better soon :) |
Yep, thanks @riker09 - it was my typo. In working app all correct and works |
Seems, that impossible to use modal in "Option 2: import individual components".
|
Hi, How can i use modal?
The text was updated successfully, but these errors were encountered: