-
Notifications
You must be signed in to change notification settings - Fork 25.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document the new ITagHelperComponent in ASP.NET Core 2.0 #4033
Comments
@danroth27 @jbagga @NTaylorMullen Looking for your feedback on the doc title and outline provided above. |
Title recommendation: Modifying |
I'd probably have a specific section labeled: This will be the typical use-case from users. Having other pieces that go into detail on the components would also be required. |
@NTaylorMullen Are TagHelper components usable from within partial views as well? If so, that would be a good example to include. As sections don't work in partial views, this would be a useful alternative that is often requested. |
They are 😄
It wouldn't be super straight forward to use TagHelperComponent's in partials (since they apply to every view) but it's definitely doable. I'm not sure if it's worth noting in the doc due to its complexity. |
Thanks! I'm sure they'll be used in partial views for things like widgets even if it's a bit of work, but since it's an edge case it makes sense to omit from doc. |
@NTaylorMullen if you can write a sample app for this I'll get the doc scheduled in the next sprint. |
@Rick-Anderson I have a basic sample here which I can clean up |
Here is the cleaned up sample https://github.com/jbagga/TagHelperComponentSample. Feel free to modify to create a more realistic example. Let me know if I can clarify anything or look at the doc. |
Cross-ref |
Addresses #4033 Addresses #5475 [Internal Review Page](https://review.docs.microsoft.com/en-us/aspnet/core/mvc/views/tag-helpers/th-components?view=aspnetcore-2.1&branch=pr-en-us-7922)
Work with Jass Bagga to get this new 2.0 scenario documented. See aspnet/Mvc#6282 for more info.
I propose the following outline for a new reference doc called Creating Custom Tag Helper Components:
This new doc will be found within the MVC --> Views --> Tag helpers TOC node, and a sample app similar to https://github.com/jbagga/VSLiveDemo/tree/master/src/TagHelperComponentSample will accompany it.
The text was updated successfully, but these errors were encountered: