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

input tag에 이미 데이터가 있는 경우 어떻게 해야 date-picker에서 보일까요? #35

Open
dongsilove opened this issue May 29, 2019 · 5 comments

Comments

@dongsilove
Copy link

dongsilove commented May 29, 2019

input type="text" class="datepicker-input" aria-label="Date-Time" value="2019-05-09"

보통 날짜를 value에 위와 같이 setting하게 되는데 기존의 데이터를 date-picker에서 보이도록 하려면 어떻게 해야할까요?

@jung-han
Copy link
Member

안녕하세요. 질문해주신 내용을 보면 value에 값을 그대로 넣으주시면 될 것 같은데요.
사용예제나 코드를 구체적으로 보여주실수 있을까요?

@dongsilove
Copy link
Author

dongsilove commented May 30, 2019 via email

@jung-han
Copy link
Member

처음에 datepicker 인스턴스를 생성할때 date옵션에 new Date() 대신 원하는 값을 넣어주시면 될 것 같습니다.

@dongsilove
Copy link
Author

dongsilove commented May 30, 2019 via email

@jung-han
Copy link
Member

jung-han commented Jun 20, 2019

@dongsilove 넵 맞습니다.

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