[英]How to create a spinner field with symfony form?
I want to have a spinner in my symfony form:我想在我的 symfony 表格中有一个微调器:
<input type="number" />
It seems symfony does not have such form field type?好像 symfony 没有这种表单域类型? and it seems their custom form field type is not for this job?
他们的自定义表单字段类型似乎不适合这项工作? https://symfony.com/doc/current/form/create_custom_field_type.html
https://symfony.com/doc/current/form/create_custom_field_type.html
From version 4.3 you can use the NumberType and set the html5 option to true so that the output is a "input type number".从 4.3 版开始,您可以使用NumberType并将html5选项设置为 true,以便 output 是“输入类型编号”。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.