Replies: 2 comments 1 reply
-
|
Hey! Sure so this would be something you could use generics for in your combobox component and typically you would need to also accept an input to extract the string from an object. Something like this should work: https://stackblitz.com/edit/stackblitz-starters-xe7nlips?file=src%2Fglobal_styles.css Any issues let me know! Thanks! |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Thank you that works. The critical code for me is then: And: |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I created a generic custombox as per documentation. Typescript is typed, in theory I could use my custom type for the
optionsandvalue.This kind of works. The filter works, the selected value works. But in the drop down list I see only
[object Object]which makes sense because it's not a string anymore but a custom object. How can change the rendering of the object?I come from Java and there is always a render method. Is it here just
toString()or something similar? Or is there some kind ofrender()method?Edit: overriding
toString()didn't work.Beta Was this translation helpful? Give feedback.
All reactions