MDBDatePicker - how to get the ID or Name of picker


Topic: MDBDatePicker - how to get the ID or Name of picker

johndoe pro asked 5 years ago

Is there anyway to get the ID or NAME of the date picker component or pass it along with getValue.

I need a single handler that can be used for all the date pickers like how we handle regular text inputs with onChange.

If i'm generating dozens of rows from a json object, where each row has a date picker. I can't distinguish which date picker to set the value. Amount of rows can vary from 1 to X.

Thank you.


Piotr Glejzer staff commented 5 years ago

did you try to use prop id?


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Open

Specification of the issue
  • User: Pro
  • Premium support: No
  • Technology: MDB React
  • MDB Version: 4.25.2
  • Device: Desktop
  • Browser: Chrome
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: No