Adding RenderFragment Parameters
Learn how to add Renderfragment parameters in the Dialog component.
We'll cover the following...
We'll cover the following...
We will use RenderFragment parameters for both the Title and Body properties of the Dialog component. We do this as follows:
- Return to Visual Studio.
- Open the
Shared\Dialog.razorfile. - Update the markup for
dialog-titleto the following:
<div class="dialog-title">@Title</div>
- Update the markup for
dialog-bodyto the following:
<div class="dialog-body">@Body</div>
- Add the