验证聚合物纸元素 [英] Validating Polymer Paper Elements
问题描述
我正在构建一个聚合物应用程序,该应用程序可以提交给REST api,并且我已经启动并运行了所有程序.但是现在我试图在其中添加一些简单的验证,而且我不知道如何验证纸张无线电输入.我只想使用HTML5验证-但这不可能.唯一的事情是我不能使用jQuery-它不是项目参数的选项.有谁知道如何验证我正在使用的基本结构? (请参见下文)
I'm building a polymer app that submits to a REST api and I've got all that up and running. But now I'm trying to add some simple validation to it and I can't figure out how to validate the paper-radio inputs. I just want to use HTML5 validation - but that may not be possible. The only thing is that I cannot use jQuery - its not an option for the project's parameters. Does anyone know how to validate the basic structure I'm using? (see below)
<paper-radio-group selected="{{selected}}">
<paper-radio-button class="radio" value="{{value}}" name="{{name}}" label="{{label}}"></paper-radio-button>
<paper-radio-button class="radio" value="{{value}}" name="{{name}}" label="{{label}}"></paper-radio-button>
<paper-radio-button class="radio" value="{{value}}" name="{{name}}" label="{{label}}"></paper-radio-button>
</paper-radio-group>
谢谢!
推荐答案
这是有关单元测试聚合物元素"的最新文章
Here's a recent article on 'Unit Testing Polymer Elements'
https://www.polymer-project.org/articles/unit-testing-elements.html
这篇关于验证聚合物纸元素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!