Chamilo is a learning management system focused on ease of use and accessibility
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
chamilo-lms/assets/vue/components/ActionCell.vue

46 lines
954 B

<template>
<div>
<v-row justify="space-around">
<v-icon v-if="handleShow" small class="mr-2" @click="handleShow">mdi-information</v-icon>
<v-icon v-if="handleEdit" small class="mr-2" @click="handleEdit">mdi-pencil</v-icon>
<v-icon v-if="handleDelete" small @click="confirmDelete = true">mdi-delete</v-icon>
</v-row>
<ConfirmDelete
v-if="handleDelete"
:visible="confirmDelete"
:handle-delete="handleDelete"
@close="confirmDelete = false"
/>
</div>
</template>
<script>
import ConfirmDelete from './ConfirmDelete';
export default {
name: 'ActionCell',
components: {
ConfirmDelete
},
data() {
return {
confirmDelete: false
};
},
props: {
handleShow: {
type: Function,
required: false
},
handleEdit: {
type: Function,
required: false
},
handleDelete: {
type: Function,
required: false
}
}
};
</script>