Quickstart
Quick start on Dynamic Form Builder
Last updated
Quick start on Dynamic Form Builder
Last updated
Lets build a simple contact from using the Dynamic Form Builder, which will demonstrate how to use this tool.
Step 1 : Create a Web Assembly Template from Visual Studio.
The package works both in Blazor Server & WASM as well.
Install the Nuget packge Blazor.UI.FormGenerator
Create a ContactForm.razor page
Create a ContactForm.razor.cs file
Under "wwwroot\json-form" -> "contact-form.json"
Dark Mode
Light Mode
To get the data from the Dynamic Form, we can use GetMudFrom
method from the DynamicMudForm
Cotrol.
Also, If we need to attach some action on the card action, we can also do the same, example in the above method "CardActionClick()
" method has been attached to the DynamicForm
to perform card actions.
The complete code been attached below.