PHP Classes

File: resources/js/Components/Checkbox.vue

Recommend this page to a friend!
  Classes of Robert Devenyi   Iceburg SAAS PHP CRM Open Source   resources/js/Components/Checkbox.vue   Download  
File: resources/js/Components/Checkbox.vue
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Iceburg SAAS PHP CRM Open Source
Application to manage the contacts of customers
Author: By
Last change:
Date: 1 year ago
Size: 691 bytes
 

Contents

Class file image Download
<script setup> import { computed } from 'vue'; const emit = defineEmits(['update:checked']); const props = defineProps({ checked: { type: [Array, Boolean], default: false, }, value: { type: String, default: null, }, }); const proxyChecked = computed({ get() { return props.checked; }, set(val) { emit('update:checked', val); }, }); </script> <template> <input v-model="proxyChecked" type="checkbox" :value="value" class="rounded border-gray-300 text-indigo-600 shadow-sm focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50" > </template>