Comments (3)
What do you mean by it submits my form
?
from datetime-picker.
The only thing the element does, that it implements a validation function so that iron-form can validate the input value. Submitting is part part of your implementation. Please have a look at the demo for the element in an iron-form in the demo-folder. Don't forget the name attribute.
from datetime-picker.
this is my code, i am use datetime-picker 2.9.1
`
<div class="layout vertical">
<iron-form id="form1" on-iron-form-submit="doSumit">
<form action="/foo" method="get">
name:
<input name="name" value="Batman" />
<br> job:
<input name="job" value="Hero" />
<br>
<br> first day:
<date-picker name="first" max="{{end}}" confirmed-value="{{start}}"></date-picker>
<br> last day:
<date-picker name="last" min="{{start}}" confirmed-value="{{end}}"></date-picker>
<br>
<br> last job:
<datetime-picker name="lastjob" min="[[start]]" max="[[end]]" date="{{lastjob}}" property-for-value="datetime"></datetime-picker>
<br> return:
<time-picker name="return" min="[[lastjob]]" max="[[end]]" confirmed-value="{{return}}"></time-picker>
<br>
<br>
<button on-click="form1submit">Submit</button>
<button onclick="form1.validate()">Validate</button>
</form>
<div id="output"></div>
</iron-form>
</div>
`
from datetime-picker.
Related Issues (20)
- DatetimePolyfillPickerMixin is not set on the window object like other mixins. HOT 1
- Polymer 3.0 support? HOT 6
- Feature request: hide reset button HOT 1
- Quitting editing, or resetting field to null HOT 1
- Feature request: fire event on value reset HOT 2
- Clamp values incorrect in the documentation HOT 1
- Calandar element submit my form automatically HOT 1
- Change width of overlay-datetime-picker HOT 1
- npm installation fails HOT 2
- i've got a widget I need HOT 1
- Typing values manually HOT 6
- onchange event (from lit-element) HOT 7
- Style input to fit Twitter Bootstrap HOT 1
- Dead links in readme.md
- ES6 with Polymer 2 HOT 1
- input-picker-closed Not Triggering Function
- date-picker Stops Navigating
- Not able to use with-timezone , errors if the timezone is active
- Disable double click feature
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from datetime-picker.