2
0
mirror of https://github.com/frappe/books.git synced 2024-11-10 15:50:56 +00:00
books/ui/components/Dropdown.vue

20 lines
574 B
Vue
Raw Normal View History

2018-07-14 14:41:31 +00:00
<template>
<div class="dropdown show">
<a class="btn btn-sm btn-secondary dropdown-toggle" href="#" role="button" id="dropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
{{label}}
</a>
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenuLink">
<a class="dropdown-item" v-for="option in options" :key="option.label" @click="option.handler">{{option.label}}</a>
</div>
</div>
</template>
<script>
export default {
props: ['label', 'options']
}
</script>
<style>
</style>