File: //home/arjun/projects/buyercall/buyercall/assets/vue/widgets/Workflows/components/WorkflowTypes.vue
<template>
<div class="workflow_types mb-3">
<div class="row">
<div class="col-md-3" v-for="(type, index) in types" :key="index">
<div
class="media d-flex align-items-center workflow_type_wrapper"
:class="{
'border-primary': type.sid === selectedID,
}"
@click="$emit('onSelectType', type.sid)"
>
<div class="avatar-sm">
<span
class="avatar-title rounded-circle font-size-16 bg-white"
:class="{
'text-dark': type.sid !== selectedID,
'text-primary': type.sid === selectedID,
}"
>
<!-- <i :class="`bx bx-chat`" height="30"></i> -->
<Icon icon="bx bx-chat" height="30"/>
</span>
</div>
<div class="media-body">
<p class="font-size-15 mb-0">
<a
href="javascript: void(0);"
:class="{
'text-dark': type.sid !== selectedID,
'text-primary': type.sid === selectedID,
}"
>{{ type.name }}</a
>
</p>
</div>
</div>
</div>
</div>
</div>
</template>
<script>
import { Icon } from '@iconify/vue';
export default {
props: {
selectedID: {
required: false,
},
types: {
types: Array,
required: true,
},
},
components: {
Icon
},
};
</script>