-
-
Notifications
You must be signed in to change notification settings - Fork 104
Free text entry - Add item to the list. #55
Comments
Maybe use the footer as ADD to list? Something like the github labels. |
Great minds! I thought about that and hit the same issue as you. This feature is fine when dealing with primitives like |
We need to give some flexibility here.
[Parameter] public Func<string, Task<TItem>> CreateMethod { get; set; }
I think we can provide something along these lines, we might need abit more handlers but i think it's fairly easy to implement and still give the user the most flexibility |
That sounds like a good plan @vertonghenb. It gives the most flexability to the developer and doesn't make things too complex to handle. |
Note to self:
|
Hey guys, Any updates concerning this Free Text Entry issue? Thanks anyway for the great job you're doing :) Best, |
Not yet @Whyskass. We'll get to this ASAP though, I've had a lot of other bits on recently so been a bit short on time. |
Sure no problem, thanks for the answer @chrissainty ;) |
This is going to be blocked by #66 |
Hi Guys, I think, if i have read this correctly, that i may have a solution for very simple entities (in this case a Category has only Id and Name fields). I have a typeahead component that allows the user to search for categories as such:
Take note of the 'NotfoundTemplate' where i have a button to create the category. That CreateCategory method looks like this:
Where i simply set the desired name of the entity to a variable named categorySearch. CategorySearch is set in the SearchCategories method:
I'm not really sure how we would deal with Creating a Category (or any entity) that has multiple required fields but for simple cases this seems to work. |
@Justincale pretty sweet solution! |
Just doing some housekeeping and it seems like @Justincale solution works without needing any modification our end. Based on that, I'm going to close this issue as there is a workable solution. Anyone please feel free to reopen if further discussion is needed. |
This baby should be documented, Reopening to track in the FAQ |
If you can choose to "lock" the not found template view in open mode. Then you could add textboxes and button for saving in it.
|
This is now covered by the feature introduced in PR #215 |
Investigate the ability to add the text entered as a search, as a new value. I'm not sure that makes sense to anyone else, but I know what I mean! 😆
The example would be if the typeahead was used for selecting a city. If the city exists a user can select it as normal, if it doesn't it can be added.
The text was updated successfully, but these errors were encountered: