Skip to content
Snippets Groups Projects
Select Git revision
  • master
1 result

README.md

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    Delete.vue 556 B
    <template>
      <b-button class="coscine_delete" @click="deleteItem">{{ btnText }}</b-button> 
    </template>
    
    <script lang="ts">
    import Vue from 'vue';
    import BootstrapVue from 'bootstrap-vue';
    Vue.use(BootstrapVue);
    
    export default Vue.extend({
      name: 'CoscineDelete',
      props: {
        btnText: {
          default: 'Delete',
          type: String,
        },
      },
      methods: {
        deleteItem() {
          this.$emit('delete');
        },
      },
    });
    </script>
    <style scoped>
    .coscine_delete:hover {
      background-color: #cc071e;
      border-color: #8e0515;
      color: #ffffff;
    }
    </style>