Allow use of toggle switches for checkboxes (#13)

This commit is contained in:
Chirag
2022-10-18 12:19:00 +05:30
committed by GitHub
parent bd7d20feb9
commit 545908d300
7 changed files with 60 additions and 5 deletions

View File

@@ -317,6 +317,9 @@ export default {
if (['select', 'multi_select'].includes(field.type) && field.without_dropdown) {
return 'FlatSelectInput'
}
if (field.type === 'checkbox' && field.use_toggle_switch) {
return 'ToggleSwitchInput'
}
return this.fieldComponents[field.type]
},
getFieldClasses (field) {