Matrix Improvements (#606)
* Support disable on matrix * fix checkbox and radio icon * Use Nuxt UI toggle * Can set max_char_limit null * fix action icon design * Support for URL prefill for Matrix * Apply theme color on toggle * Set --form-color as style variable and use it * Set default value for form-color * fix formatting --------- Co-authored-by: Julien Nahum <julien@nahum.net>
This commit is contained in:
@@ -529,13 +529,13 @@
|
||||
name="max_char_limit"
|
||||
native-type="number"
|
||||
:min="1"
|
||||
:max="2000"
|
||||
:form="field"
|
||||
label="Max character limit"
|
||||
help="Maximum character limit of 2000"
|
||||
:required="false"
|
||||
@update:model-value="onFieldMaxCharLimitChange"
|
||||
/>
|
||||
<toggle-switch-input
|
||||
v-if="field.max_char_limit"
|
||||
name="show_char_limit"
|
||||
:form="field"
|
||||
class="mt-3"
|
||||
@@ -833,6 +833,12 @@ export default {
|
||||
},
|
||||
updateMatrixField(newField) {
|
||||
this.field = newField
|
||||
},
|
||||
onFieldMaxCharLimitChange(val) {
|
||||
this.field.max_char_limit = val
|
||||
if(!this.field.max_char_limit) {
|
||||
this.field.show_char_limit = false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user