Skip to content

Commit 8b32d18

Browse files
committed
refactor: use new wrapperClass and add some new samples
1 parent 39e1ea9 commit 8b32d18

File tree

4 files changed

+12
-3
lines changed

4 files changed

+12
-3
lines changed

dev/pages/inputs/AutoComplete.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ const schema
2424
multiple: true,
2525
typeahead: false,
2626
label: 'Chips Replacement',
27+
wrapperClass: 'myClass',
2728
},
2829
]
2930

dev/pages/inputs/Checkbox.vue

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ const schema
2626
label: 'readonly',
2727
readonly: true,
2828
},
29+
{
30+
$formkit: 'primeCheckbox',
31+
name: 'indeterminate',
32+
label: 'indeterminate',
33+
indeterminate: true,
34+
},
2935
{
3036
$formkit: 'primeCheckbox',
3137
name: 'custom',

dev/pages/inputs/InputText.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ const schema
1010
label: 'Basic',
1111
help: 'Required.',
1212
validation: 'required',
13+
wrapperClass: 'myClass',
1314
},
15+
1416
{
1517
$formkit: 'primeInputText',
1618
id: 'icon',

dev/pages/inputs/ToggleSwitch.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup lang='ts'>
22
const primeAttributes = 'trueValue, falseValue'
3-
const customAttributes = 'labelLeft, labelRight, option_class'
3+
const customAttributes = 'labelLeft, labelRight'
44
55
const schema
66
= [
@@ -15,14 +15,14 @@ const schema
1515
name: 'eu_citizen',
1616
id: 'eu',
1717
labelRight: 'Are you a european citizen: ',
18-
option_class: 'flex items-center',
18+
wrapperClass: 'flex items-center',
1919
},
2020
{
2121
$formkit: 'primeToggleSwitch',
2222
name: 'confirmation',
2323
id: 'confirm',
2424
labelLeft: 'Are you sure ?',
25-
option_class: 'flex items-center',
25+
wrapperClass: 'flex items-center',
2626
},
2727
{
2828
$formkit: 'primeToggleSwitch',

0 commit comments

Comments
 (0)