wip agenda checkbox component

This commit is contained in:
Tiavina 2025-01-24 10:10:02 +03:00
parent 97164496b8
commit f7564e2b41
2 changed files with 45 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,44 @@
<template>
<div class="is-leave-checkbox-container">
<NcCheckboxRadioSwitch
:checked="isLeave"
@update:checked="toggleAllDay"
>
Is Leave
</NcCheckboxRadioSwitch>
</div>
</template>
<script>
export default {
name: "CheckboxComponent",
props: {
isLeave: {
type: Boolean,
required: true
},
name: {
type: String,
default: "checkbox"
},
label: {
type: String,
default: "Check me"
}
},
methods: {
toggleValue(event) {
this.$emit('update:isLeave', event.target.checked);
}
}
};
</script>
<style scoped>
.checkbox-container {
display: flex;
align-items: center;
gap: 8px;
}
</style>