polymer-date-picker icon indicating copy to clipboard operation
polymer-date-picker copied to clipboard

Multiple?

Open mikecann opened this issue 11 years ago • 2 comments
trafficstars

How do you get this to work with multiple date pickers on the same page? It only seems to show one input..

mikecann avatar Oct 22 '14 09:10 mikecann

Hey Mike,

You should be able to include multiple on the same page by providing multiple inputs. The date range picker is meant to bind to any relatedTarget attribute you provide.

So for example:

<polymer-date-picker id="datePicker" selectedDate="{{selectedDate}}" relatedTarget="{{$.trigger}}" opened="false"/>

<polymer-date-picker id="datePicker2" selectedDate="{{selectedDate2}}" relatedTarget="{{$.trigger2}}" opened="false"/>

Let me know if that doesn't work.

  • Christophe

On Wed, Oct 22, 2014 at 2:32 AM, Mike Cann [email protected] wrote:

How do you get this to work with multiple date pickers on the same page? It only seems to show one input..

— Reply to this email directly or view it on GitHub https://github.com/christopheclc/polymer-date-picker/issues/4.

christopheclc avatar Oct 23 '14 02:10 christopheclc

Nope, you only seem to get one input: image

mikecann avatar Oct 23 '14 06:10 mikecann