Topic: Bind Mdb Select to custom key and value
Yael Shrem premium asked 5 years ago
Expected behavior
I want to bind the key and value to custom key and value (not to
Actual behavior
Resources (screenshots, code snippets etc.)
Arkadiusz Idzikowski staff answered 5 years ago
Unfortunately it's not possible to add different object as options for mdb-select
. You need to map your data to `{ value: '', label: '' } format.
Yael Shrem premium answered 5 years ago
For example I have this object:Person p = { id , display}
I want bind the id to value and display to label (I can't change or set the id to value and the 'display' to label)
How do i do it?
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- ForumUser: Premium
- Premium support: Yes
- Technology: MDB Angular
- MDB Version: 7.2.0
- Device: Browther
- Browser: Chrome
- OS: windows
- Provided sample code: No
- Provided link: No
Arkadiusz Idzikowski staff commented 5 years ago
Please add more details to your post. It looks like you didn't include full message.