MDBDatePicker - how to get the ID or Name of picker

web
mobile

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

johndoe pro asked 2 months 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 2 months ago

did you try to use prop id?


Please insert min. 20 characters.
Status

Open

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