pickadate.js icon indicating copy to clipboard operation
pickadate.js copied to clipboard

Scrolling drop down 'year'

Open FaiqH opened this issue 10 years ago • 3 comments

Is there a way to have the drop down for the year to be scrollable?

FaiqH avatar Oct 28 '15 20:10 FaiqH

I can only select five years in the past and in the future on Safari.

thomiel avatar May 17 '19 22:05 thomiel

Did you increase selectYears?

DanielRuf avatar May 18 '19 05:05 DanielRuf

I had selectYears=true. Good pointer, that it can be a number. Now it's scrolling!

I'm using a Deform widget in my Python project, which is incorporating the settings like this:

class BirthdateField(colander.SchemaNode):
    oid = "birthdate"
    schema_type = colander.Date
    widget = deform.widget.DateInputWidget(
        options={'selectMonths': True,
                'formatSubmit': "yyyy-mm-dd",
                'selectYears': 200,  # <-- make years scrolling here! :)
                'format': 'yyyy-mm-dd'}
    )

thomiel avatar May 19 '19 16:05 thomiel