forked from quasarframework/quasar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMultiline.vue
More file actions
29 lines (26 loc) · 803 Bytes
/
Multiline.vue
File metadata and controls
29 lines (26 loc) · 803 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
<template>
<div class="q-pa-md">
<q-btn color="purple" @click="showNotif" label="Show Notification" />
</div>
</template>
<script>
import { useQuasar } from 'quasar'
export default {
setup () {
const $q = useQuasar()
return {
showNotif () {
$q.notify({
message: 'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Hic quisquam non ad sit assumenda consequuntur esse inventore officia. Corrupti reiciendis impedit vel, fugit odit quisquam quae porro exercitationem eveniet quasi.',
color: 'primary',
multiLine: true,
avatar: 'https://cdn.quasar.dev/img/boy-avatar.png',
actions: [
{ label: 'Reply', color: 'yellow', handler: () => { /* ... */ } }
]
})
}
}
}
}
</script>