Declare the v-model for "dynamic select" widget

This commit is contained in:
Lance Edgar 2020-03-24 18:19:25 -05:00
parent c14ecd2948
commit 2a4832f9b9

View file

@ -8,6 +8,7 @@
unicode unicode|str; unicode unicode|str;
optgroup_class optgroup_class|field.widget.optgroup_class; optgroup_class optgroup_class|field.widget.optgroup_class;
multiple multiple|field.widget.multiple; multiple multiple|field.widget.multiple;
vmodel vmodel|'field_model_' + name;
input_handler input_handler|'';" input_handler input_handler|'';"
tal:omit-tag=""> tal:omit-tag="">
@ -18,6 +19,7 @@
multiple multiple; multiple multiple;
size size; size size;
style style; style style;
v-model vmodel;
@input input_handler;"> @input input_handler;">
<option v-for="item in ${name}_options" <option v-for="item in ${name}_options"