LayoutDiagnostics
ClassNamespace:
RazorConsole.ComponentsAssembly:
RazorConsole.CoreDefinition
public class LayoutDiagnostics : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposableConstructors
1| Name | Type | Description |
|---|---|---|
LayoutDiagnostics() | Constructor | — |
Properties
8| Name | Type | Description |
|---|---|---|
Behavior | ||
ShowFocusMetadata | Boolean | Whether focus metadata should be rendered. |
Common | ||
Title | String | Title shown on the diagnostics panel. |
Other | ||
DiagnosticHookKey | String | Hook key assigned to the diagnostics component root. When TargetHookKey is not set, this component diagnoses itself. |
Expand | Boolean | Whether the panel should expand to the available width. |
MaxAttributes | Int32 | Maximum number of focused target attributes to render. |
ShowAttributes | Boolean | Whether focused target attributes should be rendered. |
ShowParentLayouts | Boolean | Whether parent layout metadata should be rendered from root to target. |
TargetHookKey | String | Optional hook key to inspect. When omitted, the component inspects the current focused element when available, then falls back to its own layout information. |
Methods
4| Name | Type | Description |
|---|---|---|
BuildRenderTree(RenderTreeBuilder)() | Method | Renders the component to the supplied RenderTreeBuilder. |
Dispose() | Method | — |
OnAfterRenderAsync(bool)() | Task | Method invoked after each time the component has been rendered interactively and the UI has finished updating (for example, after elements have been added to the browser DOM). Any ElementReference fields will be populated by the time this runs. This method is not invoked during prerendering or server-side rendering, because those processes are not attached to any live browser DOM and are already complete before the DOM is updated. Note that the component does not automatically re-render after the completion of any returned Task, because that would cause an infinite render loop. |
OnInitialized() | Method | Method invoked when the component is ready to start, having received its initial parameters from its parent in the render tree. |