Binding to enums #333
-
Is there a simple way or workaround solution to binding enums in an object? Here is a partial from my model
And here I am trying to bind this in the modal, which doesn't work. I'd like to use an InputSelector so the user can select the text and the enum value is used instead. Similar to the code below but with a selector of course.
At the moment I am playing around trying to understand things and have this, which of course is bound.
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I don't think you can bind enums to an |
Beta Was this translation helpful? Give feedback.
-
Just to update...the problem wasn't so much the Enum but the object type. I had to write a callback function and create the object type there. |
Beta Was this translation helpful? Give feedback.
I don't think you can bind enums to an
InputSelect
, or well not automatically that is. You can do something like this possibly.