You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: aspnetcore/blazor/components/render-modes.md
+25-2Lines changed: 25 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -226,7 +226,30 @@ The <xref:Microsoft.AspNetCore.Components.ComponentBase.RendererInfo?displayProp
226
226
*`InteractiveAuto` for Interactive Auto.
227
227
*`InteractiveWebAssembly` for Interactive WebAssembly.
228
228
229
-
Components use these properties to render content depending on their location or interactivity status. For example, a form can be disabled during prerendering and enabled when the component becomes interactive:
229
+
Components use these properties to render content depending on their location or interactivity status. The following examples demonstrate typical use cases.
230
+
231
+
Display content until a component is interactive:
232
+
233
+
```razor
234
+
@if (!RendererInfo.IsInteractive)
235
+
{
236
+
<p>Connecting to the assistant...</p>
237
+
}
238
+
else
239
+
{
240
+
...
241
+
}
242
+
```
243
+
244
+
Disable a button until a component is interactive:
0 commit comments