LayoutDiagnostics

Class
Namespace: RazorConsole.Components
Assembly: RazorConsole.Core

Definition

public class LayoutDiagnostics : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable

Constructors

1
NameTypeDescription
LayoutDiagnostics()Constructor—

Properties

8
NameTypeDescription
Behavior
ShowFocusMetadataBooleanWhether focus metadata should be rendered.
Common
TitleStringTitle shown on the diagnostics panel.
Other
DiagnosticHookKeyStringHook key assigned to the diagnostics component root. When TargetHookKey is not set, this component diagnoses itself.
ExpandBooleanWhether the panel should expand to the available width.
MaxAttributesInt32Maximum number of focused target attributes to render.
ShowAttributesBooleanWhether focused target attributes should be rendered.
ShowParentLayoutsBooleanWhether parent layout metadata should be rendered from root to target.
TargetHookKeyStringOptional 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
NameTypeDescription
BuildRenderTree(RenderTreeBuilder)()MethodRenders the component to the supplied RenderTreeBuilder.
Dispose()Method—
OnAfterRenderAsync(bool)()TaskMethod 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()MethodMethod invoked when the component is ready to start, having received its initial parameters from its parent in the render tree.