<template>
    <v-row dense>
        <v-col cols="12">
            <cs-edit-box 
                ref="Value"
                :control="controls.value"
                :errors="errorsManager.ByField('value')"
                v-model="activeRecord.value"
                @focus="errorsManager.ResetField('value')"
                @blur="errorsManager.Validate('value')"
            />
        </v-col>
    </v-row>
</template>

<script>
    export default {
        props: {
            editable: {required: true},
        },

        computed: {
            form() {
                return this.editable.form;
            },
        },

        mounted() {
            setTimeout( () => {
                this.$refs.Value.Focus();
            }, 250)
        },

        components: {
            CsEditBox: require('@CsVueComp/controls/texts/CsEditBox').default, 
        },

        mixins: [
            require('@CsVueMix/Forminput/Forminput')
        ],

        name: 'DtConfigValueEdit',
    }
</script>