forked from quasarframework/quasar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUnsafeHtml.vue
More file actions
31 lines (28 loc) · 705 Bytes
/
UnsafeHtml.vue
File metadata and controls
31 lines (28 loc) · 705 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<template>
<div class="q-pa-md q-gutter-sm">
<q-btn label="Show HTML Dialog" color="primary" @click="showDialog" />
</div>
</template>
<script>
import { useQuasar } from 'quasar'
export default {
setup () {
const $q = useQuasar()
return {
showDialog () {
$q.dialog({
title: 'Alert<em>!</em>',
message: '<em>I can</em> <span class="text-red">use</span> <strong>HTML</strong>',
html: true
}).onOk(() => {
// console.log('OK')
}).onCancel(() => {
// console.log('Cancel')
}).onDismiss(() => {
// console.log('I am triggered on both OK and Cancel')
})
}
}
}
}
</script>