Full code for the following posts on the TechDominator Blog (ordered by least recent):
- First Dynamic Form Tag Helper Attempt
- Supporting Complex Type Properties in The Dynamic Form Tag Helper
- Customizing Dynamic Form Tag Helper Generation
- Handling Multiple Choices Fields In The Dynamic Form Tag Helper
- Auto-complete for the Dynamic Form Tag Helper
This is a Visual Studio 2017 Asp.net Core (.net core runtime) project. Installation instructions can be found here.
Code as described in the First Dynamic Form Tag Helper Attempt post is available on the 'first_attempt' tag.
Changes introduced in the Supporting Complex Type Properties in The Dynamic Form Tag Helper post are available in the 'complex_properties' tag.
Changes introduced in the Customizing Dynamic Form Tag Helper Generation post are available in the 'tweak_nested_tag_helper' tag.
Changes introduced in the Handling Multiple Choices Fields In The Dynamic Form Tag Helper post are available in the multiple_choices tag.
Changes introduced in the Auto-complete for the Dynamic Form Tag Helper post are available in the most recent commit.
The Tag helper used in the tutorial is defined under the DynamicFormTagHelper/TagHelpers
folder and is used in the Index
view.
The FormGroupBuilder
class is defined under the DynamicFormTagHelper/TagHelpers
folder.
Custom attributes are defined under the DynamicFormTagHelper/TagHelpers
folder.