Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
scala中是否只有数字文本的输入? 对于我使用的文本:@helper.inputText(field) 对于数字?我应该使用什么?如何在 scala 中使用带有输入的掩码? 我已经阅读了输入文档,但我没有找到任何东西。
@helper.inputText(field)
只需添加'type -> "number"
'type -> "number"
例如:
@helper.inputText( yourForm("yourFormField"), '_label ->"Enter a number", 'type -> "number" )