I'm trying to open bootstrap-vue dropdown from a outside button. For instance:
<b-dropdown>
<template #button-content>
Custom <strong>Content</strong> with <em>HTML</em> via Slot
</template>
<b-dropdown-item href="#">An item</b-dropdown-item>
<b-dropdown-item href="#">Another item</b-dropdown-item>
</b-dropdown>
<b-button @click="openDropdown">Open Dropdown</b-button>
<script>
methods: {
openDropdown(){
// do something
}
}
</script>
I see a similar discussion here. But none of them are working. Any update of it or any other method ?