DemoCheckboxInlineTextField.vue
728 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<script lang="ts" setup>
const includeFiles = ref(true)
const isInputEnabled = ref(false)
</script>
<template>
<VRow>
<VCol
sm="1"
cols="2"
>
<VCheckbox v-model="includeFiles" />
</VCol>
<VCol
sm="11"
cols="10"
>
<VTextField
label="Include files"
placeholder="Placeholder Text"
/>
</VCol>
</VRow>
<VRow>
<VCol
cols="2"
sm="1"
>
<VCheckbox v-model="isInputEnabled" />
</VCol>
<VCol
cols="10"
sm="11"
>
<VTextField
:disabled="!isInputEnabled"
label="I only work if you check the box"
placeholder="Placeholder Text"
/>
</VCol>
</VRow>
</template>