Open afallingstone opened 7 months ago
Yes, that's a totally reasonable suggestion.
Currently the API design makes it equivalent to the user typing things directly into the form, so it's agnostic to any bindings (or even what UI framework you're using). The approach you're suggesting would be more tied to the .NET UI framework, since it would have to apply the pasted values directly to the model object instead of to the form fields. There are pros and cons each way but conceptually I think your proposal would work fine.
I'll add this to the backlog for consideration. In the short term we're mostly focused on evaluating whether developers would use these components in practical reality (as compared with whether they just seem interesting but wouldn't actually be deployed to prod), so if you get a chance to fill out https://aka.ms/smartcomponents/survey please let us know your perspectives on it.
Thanks Steve, big fan of what you're doing!
I showed a working example of this in our software and people can't wait for it to be in production.
💯💯
@afallingstone Excellent - thanks very much for letting us know!
So could it use generics and have an event callback? Really quick example and not code correct, just something like this.
Then in the model I could add attributes like what has been suggested in other issues posted.
***Edit: Fixed the bad sentence structure. Yikes 🥴