<template>
    <a class="btn btn-primary btn-sm" role="button" id="btn_cancel" style="width: 80px;margin-left: 10px;background: #946464;border-color: #dddddd;" @click='cancel'>{{title}}</a>
</template>
<script lang="ts">
export default{
    name: 'CancelButton',
    props: {
        title: { type: String, default: 'Cancel' }
    },
    methods: {
        cancel(){
            this.$router.go(-1);
        }
    },
}
</script>
