I don't know all the ins and outs, but this appears to work for me:
<!doctype html>
<html>
<head>
<script src="platform/platform.js"></script>
<link rel="import" href="polymer/polymer.html">
<polymer-element name="super-input" extends="input" attributes="value
name" noscript>
<template>
<style>:host{ border: 0; padding: 0; }</style>
This is my <input value="{{value}}">
</template>
</polymer-element>
</head>
<body>
<form method='get'>
<input is="super-input" value="whatever" name='test'>
<button type="submit">Submit</button>
</form>
</body>
</html>
Hope that helps!
On Wednesday, April 9, 2014 1:08:01 AM UTC-7, Günter Zöchbauer wrote:
>
> Is there a way to make a polymer element behave like a DOM input element
> - it's data gets sent on submit
> - participate in validation
> - ...?
>
> I thought this was a common requirement but I only found one unanswered SO
> question.
>
> Günter
>
Follow Polymer on Google+: plus.google.com/107187849809354688692
---
You received this message because you are subscribed to the Google Groups
"Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/polymer-dev/edfd0548-21cd-4e25-b914-95a70b2795e3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.