Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Best way to implement without an input field? #228

Closed
adambedford opened this issue Jan 8, 2018 · 2 comments
Closed

Best way to implement without an input field? #228

adambedford opened this issue Jan 8, 2018 · 2 comments

Comments

@adambedford
Copy link

I'm building an inline-edit component and I'd like to show the datepicker when the date label is clicked on (i.e. there is no form / no inputs).

This is similar to flatpickr's wrap option except that I don't want an input at all.

Any guidance on the best way to approach this with ember and this plugin?

@RobbieTheWagner
Copy link
Owner

Are you not going to show the date the user picked after they pick it? That value is populated in the input. I would recommend maybe styling the input to just look like text by removing the border and such. I did something similar with this addon https://github.com/shipshapecode/ember-x-editable check out the demo on there.

@adambedford
Copy link
Author

@rwwagner90 Thanks for your response. Your suggested approach works nicely!

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

No branches or pull requests

2 participants