HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
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>