File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -164,5 +164,18 @@ protected static ComponentParameter ChildContent<TComponent>(params ComponentPar
164164 {
165165 return ComponentParameter . CreateParameter ( nameof ( ChildContent ) , parameters . ToComponentRenderFragment < TComponent > ( ) ) ;
166166 }
167+
168+ /// <summary>
169+ /// Creates a component parameter which will pass the <paramref name="template"/> <see cref="RenderFragment{TValue}" />
170+ /// to the parameter with the name <paramref name="name"/>.
171+ /// </summary>
172+ /// <typeparam name="TValue"></typeparam>
173+ /// <param name="name">Parameter name</param>
174+ /// <param name="template"><see cref="RenderFragment{TValue}" /> to pass to the parameter</param>
175+ /// <returns>The <see cref="ComponentParameter"/>.</returns>
176+ protected static ComponentParameter Template < TValue > ( string name , RenderFragment < TValue > template )
177+ {
178+ return ComponentParameter . CreateParameter ( name , template ) ;
179+ }
167180 }
168181}
You can’t perform that action at this time.
0 commit comments