forked from quasarframework/quasar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBasic.vue
More file actions
35 lines (31 loc) · 1.01 KB
/
Basic.vue
File metadata and controls
35 lines (31 loc) · 1.01 KB
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
32
33
34
35
<template>
<div class="q-pa-md">
<q-btn label="Open Dialog" color="primary" @click="dialog = true" />
<q-dialog v-model="dialog" persistent>
<q-card>
<q-card-section class="row items-center">
<q-avatar icon="signal_wifi_off" color="primary" text-color="white" />
<span class="q-ml-sm">You are currently not connected to any network.</span>
</q-card-section>
<q-card-section class="row items-center">
<q-toggle v-model="cancelEnabled" label="Cancel button enabled" />
</q-card-section>
<!-- Notice v-close-popup -->
<q-card-actions align="right">
<q-btn flat label="Cancel" color="primary" v-close-popup="cancelEnabled" :disable="!cancelEnabled" />
<q-btn flat label="Turn on Wifi" color="primary" v-close-popup />
</q-card-actions>
</q-card>
</q-dialog>
</div>
</template>
<script>
export default {
data () {
return {
dialog: false,
cancelEnabled: false
}
}
}
</script>