Friday, May 17, 2024
 Popular · Latest · Hot · Upcoming
140
rated 0 times [  146] [ 6]  / answers: 1 / hits: 17714  / 6 Years ago, thu, april 5, 2018, 12:00:00

I'm using VueJS with the VuetifyJS material design components. How to position the Vuetify popover component below the MORE button? (Currently it's positioned on the upper left, I guess it's the fall back x=0, y=0.)



Button:



<button @click.prevent=openPopover>MORE</button>


Popover Vuetify template:



 <template>
<div class=text-xs-center>
<v-menu
offset-x
:close-on-content-click=false
:nudge-width=200
v-model=menu
>
<v-btn color=indigo dark slot=activator>Menu as Popover</v-btn>
<v-card>
<v-list>
<v-list-tile-action>
<v-btn
icon
:class=fav ? 'red--text' : ''
@click=fav = !fav
>
<v-icon>favorite</v-icon>
</v-btn>
</v-list-tile-action>
</v-list-tile>
</v-list>
</v-menu>
</div>
</template>


JS:



    <script>
export default {
data: () => ({
fav: true,
menu: false,
message: false,
hints: true
})
}
</script>

More From » vue.js

 Answers
6

I fixed the problem by putting the popover code in a drop down menu.
There are also a couple of options in the API to position the content of the menu.



Examples and API: https://vuetifyjs.com/en/components/menus


[#54756] Tuesday, April 3, 2018, 6 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
tayla

Total Points: 681
Total Questions: 102
Total Answers: 108

Location: Marshall Islands
Member since Tue, Sep 21, 2021
3 Years ago
tayla questions
Fri, Mar 5, 21, 00:00, 3 Years ago
Wed, Oct 28, 20, 00:00, 4 Years ago
Thu, Apr 9, 20, 00:00, 4 Years ago
;