2020-04-06 23:48:28 +02:00
|
|
|
<template>
|
2021-03-22 16:00:00 +01:00
|
|
|
<button type="button" class="ui-dot-button" :disabled="disabled" @click="tryClick" v-localize:title="title">
|
2020-04-06 23:48:28 +02:00
|
|
|
<span class="sr-only" v-localize="title"></span>
|
2021-01-17 20:04:43 +01:00
|
|
|
<ui-icon class="ui-button-icon" symbol="fth-more-horizontal" />
|
2020-04-06 23:48:28 +02:00
|
|
|
</button>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
export default {
|
|
|
|
|
name: 'uiDotButton',
|
|
|
|
|
|
|
|
|
|
props: {
|
|
|
|
|
state: {
|
|
|
|
|
type: String,
|
|
|
|
|
default: 'default'
|
|
|
|
|
},
|
|
|
|
|
title: {
|
|
|
|
|
type: String,
|
|
|
|
|
default: '@ui.actions'
|
|
|
|
|
},
|
2020-05-20 13:15:20 +02:00
|
|
|
disabled: Boolean
|
2020-04-06 23:48:28 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
|
|
mounted ()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
methods: {
|
|
|
|
|
|
2020-05-20 13:15:20 +02:00
|
|
|
tryClick(ev)
|
|
|
|
|
{
|
|
|
|
|
this.$emit('click', ev);
|
|
|
|
|
}
|
2020-04-06 23:48:28 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|