聚合物纸输入和表格提交 [英] Polymer paper-input and form submission

查看:63
本文介绍了聚合物纸输入和表格提交的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在研究论坛主题,并开始使用Web组件,但是表单元素不起作用.

I'm working on a forum theme and started using web components but the form elements don't work.

我有这样的东西:

<input type="text" name="subject" maxlength="85" value="{$subject}" tabindex="1" />

然后我尝试将其翻译成这样

and I tried translating it like that

<paper-input floatinglabel="" label="{$lang->thread_subject}" type="text" name="subject" maxlength="85" value="{$subject}" tabindex="1"></paper-input>

以及所有其他变体也将元素嵌套在其中,但是它不起作用.

and all kind of variations also nesting the element inside but it doesn't work.

所有其他输入元素(例如提交按钮,复选框等)都一样.

Same goes for all other input elements like submit buttons, checkboxes etc.

推荐答案

对于Polymer 1.0,请参见新的

For Polymer 1.0 see the new Iron Form element.

这篇关于聚合物纸输入和表格提交的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆