|
8 | 8 | </p> |
9 | 9 |
|
10 | 10 | <div> |
11 | | - <button ref="target1" class="primary"> |
| 11 | + <button class="primary"> |
12 | 12 | <i>assignment</i> |
13 | | - </button> |
14 | | - <quasar-popover anchor-ref="target1" ref="popover1"> |
15 | | - <div class="list highlight" style="min-width: 150px; max-height: 500px;"> |
16 | | - <div |
17 | | - class="item item-link two-lines item-delimiter" |
18 | | - v-for="n in 20" |
19 | | - @click="showToast(), $refs.popover1.close()" |
20 | | - > |
21 | | - <div class="item-content"> |
22 | | - <div>Label</div> |
23 | | - <div>Value</div> |
| 13 | + |
| 14 | + <quasar-popover ref="popover1"> |
| 15 | + <div class="list highlight" style="min-width: 150px; max-height: 500px;"> |
| 16 | + <div |
| 17 | + class="item item-link two-lines item-delimiter" |
| 18 | + v-for="n in 20" |
| 19 | + @click="showToast(), $refs.popover1.close()" |
| 20 | + > |
| 21 | + <div class="item-content"> |
| 22 | + <div>Label</div> |
| 23 | + <div>Value</div> |
| 24 | + </div> |
24 | 25 | </div> |
25 | 26 | </div> |
26 | | - </div> |
27 | | - </quasar-popover> |
| 27 | + </quasar-popover> |
| 28 | + </button> |
28 | 29 |
|
29 | 30 | <button ref="target4" class="negative"> |
30 | 31 | Disabled Popover |
| 32 | + |
| 33 | + <quasar-popover disable> |
| 34 | + This Popover content won't be shown because of "disable" |
| 35 | + </quasar-popover> |
31 | 36 | </button> |
32 | | - <quasar-popover anchor-ref="target4" disable> |
33 | | - This Popover content won't be shown because of "disable" |
34 | | - </quasar-popover> |
35 | 37 |
|
36 | 38 | <div class="card" style="margin-top: 75px"> |
37 | 39 | <div class="card-title bg-primary text-center"> |
38 | | - <button ref="target2" class="orange push">Tap</button> |
39 | | - </div> |
40 | | - <quasar-popover |
41 | | - anchor-ref="target2" |
42 | | - ref="popover2" |
43 | | - :anchor-origin="anchorOrigin" |
44 | | - :target-origin="targetOrigin" |
45 | | - > |
46 | | - <div class="list highlight" style="min-width: 100px"> |
47 | | - <div |
48 | | - class="item item-link item-delimiter" |
49 | | - v-for="n in 3" |
50 | | - @click="showToast(), $refs.popover2.close()" |
| 40 | + <button class="orange push"> |
| 41 | + Tap |
| 42 | + |
| 43 | + <quasar-popover |
| 44 | + ref="popover2" |
| 45 | + :anchor-origin="anchorOrigin" |
| 46 | + :target-origin="targetOrigin" |
51 | 47 | > |
52 | | - <div class="item-content"> |
53 | | - Label |
| 48 | + <div class="list highlight" style="min-width: 100px"> |
| 49 | + <div |
| 50 | + class="item item-link item-delimiter" |
| 51 | + v-for="n in 3" |
| 52 | + @click="showToast(), $refs.popover2.close()" |
| 53 | + > |
| 54 | + <div class="item-content"> |
| 55 | + Label |
| 56 | + </div> |
| 57 | + </div> |
54 | 58 | </div> |
55 | | - </div> |
56 | | - </div> |
57 | | - </quasar-popover> |
| 59 | + </quasar-popover> |
| 60 | + </button> |
| 61 | + </div> |
58 | 62 |
|
59 | 63 | <p class="caption text-center">Configure the Popover for button above.</p> |
60 | 64 | <div class="card-content group row sm-column"> |
|
133 | 137 | </div> |
134 | 138 |
|
135 | 139 | <br><br> |
136 | | - <div style="margin-bottom: 700px;"> |
| 140 | + <span> |
137 | 141 | <img ref="target3" :src="'statics/map.png'" class="responsive"> |
138 | 142 | <quasar-popover anchor-ref="target3" ref="popover3" touch-position> |
139 | 143 | <div class="list highlight" style="min-width: 200px; max-height: 300px;"> |
|
149 | 153 | </div> |
150 | 154 | </div> |
151 | 155 | </quasar-popover> |
152 | | - </div> |
| 156 | + </span> |
153 | 157 |
|
154 | | - <button ref="target5" class="secondary absolute-top-right" style="top: 10px; right: 10px; right: 16px;"> |
| 158 | + <div style="margin-bottom: 700px;"></div> |
| 159 | + |
| 160 | + <button class="secondary absolute-top-right" style="top: 10px; right: 10px; right: 16px;"> |
155 | 161 | <i>directions</i> |
156 | | - </button> |
157 | | - <quasar-popover anchor-ref="target5" ref="popover5"> |
158 | | - <img |
| 162 | + |
| 163 | + <quasar-popover ref="popover5"> |
| 164 | + <img |
159 | 165 | :src="'statics/map.png'" |
160 | 166 | style="height: 150px; width: 200px;" |
161 | 167 | @click="showToast(), $refs.popover5.close()"> |
162 | | - </quasar-popover> |
| 168 | + </quasar-popover> |
| 169 | + </button> |
163 | 170 |
|
164 | | - <button ref="target6" class="tertiary absolute-bottom-right" style="bottom: 10px; right: 16px;"> |
| 171 | + <button class="tertiary absolute-bottom-right" style="bottom: 10px; right: 16px;"> |
165 | 172 | <i>plus_one</i> |
| 173 | + |
| 174 | + <quasar-popover ref="popover6"> |
| 175 | + <div class="group" style="width: 200px; height: 50px; text-align: center;"> |
| 176 | + <button class="primary clear" @click="showToast(), $refs.popover6.close()"> |
| 177 | + <i>thumb_up</i> |
| 178 | + </button> |
| 179 | + <button class="primary clear" @click="showToast(), $refs.popover6.close()"> |
| 180 | + <i>thumb_down</i> |
| 181 | + </button> |
| 182 | + <button class="secondary clear" @click="showToast(), $refs.popover6.close()"> |
| 183 | + <i>share</i> |
| 184 | + </button> |
| 185 | + </div> |
| 186 | + </quasar-popover> |
166 | 187 | </button> |
167 | | - <quasar-popover anchor-ref="target6" ref="popover6"> |
168 | | - <div class="group" style="width: 200px; height: 50px; text-align: center;"> |
169 | | - <button class="primary clear" @click="showToast(), $refs.popover6.close()"> |
170 | | - <i>thumb_up</i> |
171 | | - </button> |
172 | | - <button class="primary clear" @click="showToast(), $refs.popover6.close()"> |
173 | | - <i>thumb_down</i> |
174 | | - </button> |
175 | | - <button class="secondary clear" @click="showToast(), $refs.popover6.close()"> |
176 | | - <i>share</i> |
177 | | - </button> |
178 | | - </div> |
179 | | - </quasar-popover> |
180 | 188 | </div> |
181 | 189 |
|
182 | | - <button ref="target7" class="primary absolute-bottom-left" style="bottom: 10px; left: 10px;"> |
| 190 | + <button class="primary absolute-bottom-left" style="bottom: 10px; left: 10px;"> |
183 | 191 | <i>menu</i> |
184 | | - </button> |
185 | | - <quasar-popover anchor-ref="target7" ref="popover7"> |
186 | | - <div class="list highlight" style="min-width: 150px"> |
187 | | - <div |
188 | | - class="item item-link two-lines item-delimiter" |
189 | | - v-for="n in 20" |
190 | | - @click="showToast(), $refs.popover7.close()" |
191 | | - > |
192 | | - <div class="item-content"> |
193 | | - <div>Label</div> |
194 | | - <div>Value</div> |
| 192 | + |
| 193 | + <quasar-popover ref="popover7"> |
| 194 | + <div class="list highlight" style="min-width: 150px"> |
| 195 | + <div |
| 196 | + class="item item-link two-lines item-delimiter" |
| 197 | + v-for="n in 20" |
| 198 | + @click="showToast(), $refs.popover7.close()" |
| 199 | + > |
| 200 | + <div class="item-content"> |
| 201 | + <div>Label</div> |
| 202 | + <div>Value</div> |
| 203 | + </div> |
195 | 204 | </div> |
196 | 205 | </div> |
197 | | - </div> |
198 | | - </quasar-popover> |
| 206 | + </quasar-popover> |
| 207 | + </button> |
199 | 208 | </div> |
200 | 209 | </div> |
201 | 210 | </template> |
|
0 commit comments