summaryrefslogtreecommitdiff
path: root/src/components/Global/TableRowAction.vue
blob: c8d2d0cff91770e202ce7255ca1504cb646c3e97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<template>
  <b-button
    :aria-label="title ? title : value"
    :title="title"
    variant="link"
    :disabled="!enabled"
    @click="$emit('click:tableAction', value)"
  >
    <slot name="icon">
      {{ value }}
    </slot>
  </b-button>
</template>

<script>
export default {
  name: 'TableRowAction',
  props: {
    value: {
      type: String,
      required: true
    },
    enabled: {
      type: Boolean,
      default: true
    },
    title: {
      type: String,
      default: null
    }
  }
};
</script>

<style lang="scss" scoped>
.btn {
  padding-top: 0;
  padding-bottom: 0;
}
</style>