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

get value in this datepicker #48

Open
maryam-rostami opened this issue Aug 19, 2018 · 1 comment
Open

get value in this datepicker #48

maryam-rostami opened this issue Aug 19, 2018 · 1 comment

Comments

@maryam-rostami
Copy link

maryam-rostami commented Aug 19, 2018

how to get value in this datepicker?

class FormDataTime extends FormElement {
        constructor(props) {
          super(props);

  getValue() {
    return ???
  }

  render() {
    return (<DatePicker/> )
  }
}
@mohebifar
Copy link
Contributor

It's done by registering an onChange listener. Please take a look at the example:
https://github.com/evandhq/react-persian-datepicker/blob/master/examples/src/components/App.js#L58

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