Skip to content

amp-date-picker specify an initial date offset from current date #16904

@RonnieWinter

Description

@RonnieWinter

What's the feature?

I have tried to set up the amp date picker to automatically have a date set on the input as the page loads. I have looked at the documentation but in there the only way to set the date is when the user taps on the input.

How could the feature be implemented?

Since this is more of an event feature, I was thinking it could be something like this?:

<input name="date1" on="load:date-picker.today(offset=14)" role="textbox" tabindex="5" />

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions