Polymer paper-input and form submission

允我心安 提交于 2019-12-11 00:09:49

问题


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

I have stuff like this:

<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.


回答1:


For Polymer 1.0 see the new Iron Form element.




回答2:


You can try something like this - http://jsbin.com/kurelaji/2/edit



来源:https://stackoverflow.com/questions/25160493/polymer-paper-input-and-form-submission

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!