Created
January 9, 2022 19:24
-
-
Save shishirraven/cfb74452b90e7dc474a40a92575bd983 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div> | |
<BraveDialog ref="bravedialog" dialogwidth="500px"> | |
<template #dialog-heading> | |
<img class="me-3" alt="Vue logo" width="30px;" src="../assets/logo.png"> VueJS Dialog | |
</template> | |
<template #dialog-body> | |
<div class="p-4">This is a BraveVue Dialog VueJS Component</div> | |
</template> | |
<template #footer> | |
<div class="btn btn-primary text-white m-4" @click="$refs.bravedialog.hide()">Close</div> | |
</template> | |
</BraveDialog> | |
<div @click="$refs.bravedialog.show()" class="btn btn-lg btn-primary text-white px-4"><i class="bi bi-window"></i> Open Dialog</div> | |
</div> | |
</template> | |
<script> | |
// @ is an alias to /src | |
import {BraveDialog} from "bravevue" | |
export default { | |
name: 'Home', | |
components: { | |
BraveDialog | |
} | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment