Skip to content
This repository has been archived by the owner on Jan 16, 2018. It is now read-only.

Datepicker #124

Open
mthadley opened this issue Oct 23, 2017 · 7 comments
Open

Datepicker #124

mthadley opened this issue Oct 23, 2017 · 7 comments
Labels

Comments

@mthadley
Copy link

Posting an issue here because we have a need for a Datepicker component. I believe there is already one somewhere in Lexicon, however I wasn't able to find it on any of the documentation sites.

Is this something that we will see worked on here?

\cc @Robert-Frampton @bryceosterhaus @pat270

@matuzalemsteles
Copy link
Collaborator

Hey @mthadley, For now we do not have any ticket seen by the Lexicon team related to Datepicker, I can not confirm. @carloslancha can say more about it.

@bryceosterhaus
Copy link
Contributor

The date picker in question is seen here https://hosting-lexiconupcoming.wedeploy.io/docs/patterns/Forms/text_input_variations.html#date-field-or-date-selector

@matuzalemsteles
Copy link
Collaborator

Hey @mthadley, Sorry for the confusion, the name is different for me in the ticket. We'll be working on him around here. If you wish to accompany https://issues.liferay.com/browse/LEXI-165

@carloslancha
Copy link
Collaborator

Hi guys! What do you need exactly, the component (metal-soy-component) or just the markup?

@mthadley
Copy link
Author

@carloslancha Ideally the component, but the markup could be useful too.

@jbalsas
Copy link
Contributor

jbalsas commented Oct 25, 2017

Hey @mthadley, @bryceosterhaus, what Lexicon shows is pretty much the default <input type="date"> control in Chrome/Opera. The idea was to just use the native ones, style them and fallback to a more custom-based picker only when necessary.

You might just start with that for now as a placeholder.

@mthadley
Copy link
Author

@jbalsas Ah, thanks. I didn't realize it was styled after that, but sure enough the layout is nearly identical.

We still have some extra feature requirements, like support for selecting a range of dates. For now, we've built our own using moment to handle most of the date logic and localization.

In the future though, we can consider using the native date widget. Though I think not all browsers have one?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants